diff options
Diffstat (limited to 'lib/class/update.class.php')
-rw-r--r-- | lib/class/update.class.php | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/lib/class/update.class.php b/lib/class/update.class.php index 8ea8a615..a11108fe 100644 --- a/lib/class/update.class.php +++ b/lib/class/update.class.php @@ -83,6 +83,8 @@ class Update { /* Make sure that update_info exits */ $sql = "SHOW TABLES LIKE 'update_info'"; $db_results = mysql_query($sql, dbh()); + if (!is_resource(dbh())) { header("Location: test.php"); } + // If no table if (!mysql_num_rows($db_results)) { |