mirror of
https://github.com/pandorafms/pandorafms.git
synced 2025-07-28 08:14:38 +02:00
fix error report sql pandora_enterprise#12072
This commit is contained in:
parent
6ecd8ca899
commit
b167a4b4c5
@ -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) {
|
||||
|
Loading…
x
Reference in New Issue
Block a user