summaryrefslogtreecommitdiffstats
path: root/lib/debug.lib.php
diff options
context:
space:
mode:
authorPaul Arthur <paul.arthur@flowerysong.com>2013-02-03 11:27:54 -0500
committerPaul Arthur <paul.arthur@flowerysong.com>2013-02-03 11:27:54 -0500
commitd8e9d73608b8c98776b02fadd94aab314d5abb4f (patch)
tree80ea4e855e0e5ef69ed32dd49518126f6cbb7386 /lib/debug.lib.php
parentdd70337451390b260e95f998c8b79b9fefbf3b3a (diff)
downloadampache-d8e9d73608b8c98776b02fadd94aab314d5abb4f.tar.gz
ampache-d8e9d73608b8c98776b02fadd94aab314d5abb4f.tar.bz2
ampache-d8e9d73608b8c98776b02fadd94aab314d5abb4f.zip
Split the PDO check in two
It's more helpful this way.
Diffstat (limited to 'lib/debug.lib.php')
-rw-r--r--lib/debug.lib.php10
1 files changed, 6 insertions, 4 deletions
diff --git a/lib/debug.lib.php b/lib/debug.lib.php
index 7ce061f6..e254828a 100644
--- a/lib/debug.lib.php
+++ b/lib/debug.lib.php
@@ -26,6 +26,7 @@ function check_php() {
check_php_hash() &&
check_php_hash_algo() &&
check_php_pdo() &&
+ check_php_pdo_mysql() &&
check_php_session() &&
check_php_json() &&
check_php_safemode()
@@ -60,10 +61,11 @@ function check_php_session() {
}
function check_php_pdo() {
- if (class_exists('PDO') && in_array('mysql', PDO::getAvailableDrivers())) {
- return true;
- }
- return false;
+ return class_exists('PDO');
+}
+
+function check_php_pdo_mysql() {
+ return class_exists('PDO') ? in_array('mysql', PDO::getAvailableDrivers()) : false;
}
/**