diff options
author | Paul Arthur <paul.arthur@flowerysong.com> | 2013-01-29 00:27:58 -0500 |
---|---|---|
committer | Paul Arthur <paul.arthur@flowerysong.com> | 2013-01-29 03:08:52 -0500 |
commit | b7c9678012aaeac44784ccf19598140bdf49d6ca (patch) | |
tree | 1b10f896a9a23adbee0cbb08ff9f8d69831b39ca /lib/class/update.class.php | |
parent | 3010ae8c85fe8cb656c9e96a95d0efee0fb2126a (diff) | |
download | ampache-b7c9678012aaeac44784ccf19598140bdf49d6ca.tar.gz ampache-b7c9678012aaeac44784ccf19598140bdf49d6ca.tar.bz2 ampache-b7c9678012aaeac44784ccf19598140bdf49d6ca.zip |
Switch Dba from mysql to PDO-MySQL
The mysql extension is deprecated in PHP 5.5 and will be removed in the
future.
Diffstat (limited to 'lib/class/update.class.php')
-rw-r--r-- | lib/class/update.class.php | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/lib/class/update.class.php b/lib/class/update.class.php index f730b335..2bfcdd4d 100644 --- a/lib/class/update.class.php +++ b/lib/class/update.class.php @@ -84,7 +84,9 @@ class Update { /* Make sure that update_info exits */ $sql = "SHOW TABLES LIKE 'update_info'"; $db_results = Dba::read($sql); - if (!is_resource(Dba::dbh())) { header("Location: test.php"); } + if (!Dba::dbh()) { + header("Location: test.php"); + } // If no table if (!Dba::num_rows($db_results)) { |