add a check for pdo

This commit is contained in:
Frank Karlitschek 2012-06-01 20:00:33 +02:00
parent 07e1e3a945
commit 4aa96de537
1 changed files with 3 additions and 0 deletions

View File

@ -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;
}