diff options
Diffstat (limited to 'engine')
-rw-r--r-- | engine/lib/database.php | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/engine/lib/database.php b/engine/lib/database.php index 431e535d0..06b6770a3 100644 --- a/engine/lib/database.php +++ b/engine/lib/database.php @@ -261,8 +261,7 @@ function get_db_tables() {
global $CONFIG;
$result = get_data("show tables");
- $result = (array) $result;
-
+
$tables = array();
if (is_array($result) && !empty($result)) {
@@ -273,7 +272,9 @@ $tables[] = $element;
}
}
- }
+ } + else + return false;
return $tables;
}
|