summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorFrank Karlitschek <frank@owncloud.org>2012-06-01 20:00:33 +0200
committerFrank Karlitschek <frank@owncloud.org>2012-06-01 20:00:33 +0200
commit4aa96de53784e2765943df9fb6d7a2b87c87036f (patch)
tree24c58a94ef836cd777fcb384b8cd826f0c128e02
parent07e1e3a9454df55d27e3c52e6345a6a3aee1344a (diff)
downloadnextcloud-server-4aa96de53784e2765943df9fb6d7a2b87c87036f.tar.gz
nextcloud-server-4aa96de53784e2765943df9fb6d7a2b87c87036f.zip
add a check for pdo
-rw-r--r--lib/util.php3
1 files changed, 3 insertions, 0 deletions
diff --git a/lib/util.php b/lib/util.php
index 628c23f4cba..fda60587b82 100644
--- a/lib/util.php
+++ b/lib/util.php
@@ -264,6 +264,9 @@ class OC_Util {
if(floatval(phpversion())<5.3){
$errors[]=array('error'=>'PHP 5.3 is required.<br/>','hint'=>'Please ask your server administrator to update PHP to version 5.3 or higher. PHP 5.2 is no longer supported by ownCloud and the PHP community.');
}
+ if(!defined('PDO::ATTR_DRIVER_NAME')){
+ $errors[]=array('error'=>'PHP PDO module is not installed.<br/>','hint'=>'Please ask your server administrator to install the module.');
+ }
return $errors;
}