From e73e55333452ce5615c21f27f323cc94bb8654bc Mon Sep 17 00:00:00 2001 From: Karl 'vollmerk' Vollmer Date: Sat, 6 Jan 2007 20:59:26 +0000 Subject: * Fixed display issues on TV page relating to now playing Post AJAX and floating issues * Fixed display of Last IP if tracking disabled * Fixed play issue with invalid songs when using Democratic Play --- lib/class/update.class.php | 2 ++ 1 file changed, 2 insertions(+) (limited to 'lib/class/update.class.php') 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)) { -- cgit