summaryrefslogtreecommitdiffstats
path: root/lib/class
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
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')
-rw-r--r--lib/class/song.class.php2
-rw-r--r--lib/class/update.class.php2
2 files changed, 3 insertions, 1 deletions
diff --git a/lib/class/song.class.php b/lib/class/song.class.php
index 242186ad..60a9da1f 100644
--- a/lib/class/song.class.php
+++ b/lib/class/song.class.php
@@ -182,7 +182,7 @@ class Song {
$this->mime = "audio/x-realaudio";
break;
case 'flac';
- $this->mime = "application/x-flac";
+ $this->mime = "audio/x-flac";
break;
case 'wv':
$this->mime = 'audio/x-wavpack';
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)) {