aboutsummaryrefslogtreecommitdiff
path: root/engine/lib
diff options
context:
space:
mode:
Diffstat (limited to 'engine/lib')
-rw-r--r--engine/lib/database.php10
1 files changed, 8 insertions, 2 deletions
diff --git a/engine/lib/database.php b/engine/lib/database.php
index 86044a375..abd3e52a4 100644
--- a/engine/lib/database.php
+++ b/engine/lib/database.php
@@ -344,8 +344,14 @@
if (isset($tables)) {
return $tables;
}
-
- $result = get_data("show tables");
+
+ try{
+ $result = get_data("show tables");
+ } catch (DatabaseException $d)
+ {
+ // Likely we can't handle an exception here, so just return false.
+ return false;
+ }
$tables = array();