diff options
Diffstat (limited to 'lib/class')
-rw-r--r-- | lib/class/song.class.php | 2 | ||||
-rw-r--r-- | lib/class/update.class.php | 2 |
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)) { |