Create database object if not set. (#6492)

* Create database object if not set.
This commit is contained in:
FusionPBX
2022-11-08 09:40:12 -07:00
committed by GitHub
parent 4a1913b447
commit 88bc541d0d
10 changed files with 42 additions and 40 deletions
@@ -194,7 +194,7 @@
}
}
if ($sql != '') {
$database = new database;
if (!isset($database)) { $database = new database; }
$connections = $database->select($sql, null, 'column');
unset($sql);
}