diff options
Diffstat (limited to 'engine')
-rw-r--r-- | engine/lib/database.php | 10 |
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();
|