diff options
-rw-r--r-- | engine/lib/database.php | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/engine/lib/database.php b/engine/lib/database.php index 1d78ac310..431e535d0 100644 --- a/engine/lib/database.php +++ b/engine/lib/database.php @@ -259,6 +259,7 @@ * @return array List of tables
*/
function get_db_tables() {
+ global $CONFIG;
$result = get_data("show tables");
$result = (array) $result;
@@ -266,6 +267,7 @@ if (is_array($result) && !empty($result)) {
foreach($result as $row) {
+ $row = (array) $row;
if (is_array($row) && !empty($row))
foreach($row as $element) {
$tables[] = $element;
|