summaryrefslogtreecommitdiffstats
path: root/lib/debug.lib.php
diff options
context:
space:
mode:
Diffstat (limited to 'lib/debug.lib.php')
-rw-r--r--lib/debug.lib.php13
1 files changed, 13 insertions, 0 deletions
diff --git a/lib/debug.lib.php b/lib/debug.lib.php
index f1c5dbcc..f96c9ffa 100644
--- a/lib/debug.lib.php
+++ b/lib/debug.lib.php
@@ -74,6 +74,19 @@ function check_php_pcre() {
} // check_php_pcre
/**
+ * check_pdo
+ *
+ * Checks to make sure that PDO is available.
+ */
+function check_pdo() {
+ if (class_exists('PDO') && in_array('mysql', PDO::getAvailableDrivers())) {
+ return true;
+ }
+
+ return false;
+}
+
+/**
* check_config_values
* checks to make sure that they have at least set the needed variables
*/