summaryrefslogtreecommitdiffstats
path: root/lib/class/update.class.php
diff options
context:
space:
mode:
authorKarl 'vollmerk' Vollmer <vollmer@ampache.org>2007-01-06 20:59:26 +0000
committerKarl 'vollmerk' Vollmer <vollmer@ampache.org>2007-01-06 20:59:26 +0000
commite73e55333452ce5615c21f27f323cc94bb8654bc (patch)
treec7b6dd77684623d2461a77055f2b9608885f5570 /lib/class/update.class.php
parentdb638040c7d6ee38187ffa9a99d083449e9669a3 (diff)
downloadampache-e73e55333452ce5615c21f27f323cc94bb8654bc.tar.gz
ampache-e73e55333452ce5615c21f27f323cc94bb8654bc.tar.bz2
ampache-e73e55333452ce5615c21f27f323cc94bb8654bc.zip
* 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
Diffstat (limited to 'lib/class/update.class.php')
-rw-r--r--lib/class/update.class.php2
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)) {