mirror of
https://github.com/pandorafms/pandorafms.git
synced 2025-07-28 16:24:54 +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)
|
function db_validate_sql(string $sql, $server=false)
|
||||||
{
|
{
|
||||||
|
if ($server == 0) {
|
||||||
|
$server = false;
|
||||||
|
}
|
||||||
|
|
||||||
if ($server !== false && is_metaconsole() === true) {
|
if ($server !== false && is_metaconsole() === true) {
|
||||||
$setup = metaconsole_get_connection($server);
|
$setup = metaconsole_get_connection($server);
|
||||||
if (metaconsole_connect($setup) !== NOERR) {
|
if (metaconsole_connect($setup) !== NOERR) {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user