diff options
author | Frank Karlitschek <frank@owncloud.org> | 2012-06-01 20:00:33 +0200 |
---|---|---|
committer | Frank Karlitschek <frank@owncloud.org> | 2012-06-01 20:00:33 +0200 |
commit | 4aa96de53784e2765943df9fb6d7a2b87c87036f (patch) | |
tree | 24c58a94ef836cd777fcb384b8cd826f0c128e02 | |
parent | 07e1e3a9454df55d27e3c52e6345a6a3aee1344a (diff) | |
download | nextcloud-server-4aa96de53784e2765943df9fb6d7a2b87c87036f.tar.gz nextcloud-server-4aa96de53784e2765943df9fb6d7a2b87c87036f.zip |
add a check for pdo
-rw-r--r-- | lib/util.php | 3 |
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; } |