diff --git a/includes/dbFacile.mysql.php b/includes/dbFacile.mysql.php index e5f3a5738f..e51a695b71 100644 --- a/includes/dbFacile.mysql.php +++ b/includes/dbFacile.mysql.php @@ -24,7 +24,7 @@ function dbQuery($sql, $parameters=array()) { - global $fullSql, $debug, $sql_debug; + global $fullSql, $debug, $sql_debug, $console_color; $fullSql = dbMakeQuery($sql, $parameters); if ($debug) { if (php_sapi_name() == 'cli' && empty($_SERVER['REMOTE_ADDR'])) { diff --git a/includes/dbFacile.mysqli.php b/includes/dbFacile.mysqli.php index e81ad047b6..e956e78baa 100644 --- a/includes/dbFacile.mysqli.php +++ b/includes/dbFacile.mysqli.php @@ -22,6 +22,7 @@ * Used by the other _query functions. * */ + function dbQuery($sql, $parameters=array()) { global $fullSql, $debug, $sql_debug, $console_color, $database_link; $fullSql = dbMakeQuery($sql, $parameters);