Update Core libs to avoid notice errors, add debug override switch

$DEBUG_ALL_OVERRIDE added to not override the set
$DEBUG_ALL/$PRINT_ALL/etc switches on one script.

Fix various notice bugs on very strict PHP setups.
This commit is contained in:
Clemens Schwaighofer
2015-11-06 11:43:01 +09:00
parent d67a4231c3
commit ae1ef182ef
4 changed files with 16 additions and 9 deletions

View File

@@ -652,7 +652,7 @@
{
// TODO: get primary key from table name
list($schema, $table) = $this->_db_return_table($this->query);
if (!$this->pk_name_table[$table])
if (!array_key_exists($table, $this->pk_name_table) || !$this->pk_name_table[$table])
{
$this->pk_name_table[$table] = $this->db_functions->_db_primary_key($table, $schema);
}
@@ -1321,7 +1321,7 @@
return false;
}
// check if this was already prepared
if (!is_array($this->prepare_cursor[$stm_name]))
if (!array_key_exists($stm_name, $this->prepare_cursor) || !is_array($this->prepare_cursor[$stm_name]))
{
// if this is an insert query, check if we can add a return
if ($this->_check_query_for_insert($query, true))