diff --git a/pandora_console/include/functions_db.php b/pandora_console/include/functions_db.php index e2091cc2c1..637257e764 100644 --- a/pandora_console/include/functions_db.php +++ b/pandora_console/include/functions_db.php @@ -2567,6 +2567,10 @@ function db_get_column_type(string $table, string $column='') */ function db_validate_sql(string $sql, $server=false) { + if ($server == 0) { + $server = false; + } + if ($server !== false && is_metaconsole() === true) { $setup = metaconsole_get_connection($server); if (metaconsole_connect($setup) !== NOERR) {