]> source.dussan.org Git - nextcloud-server.git/commitdiff
add a check for pdo
authorFrank Karlitschek <frank@owncloud.org>
Fri, 1 Jun 2012 18:00:33 +0000 (20:00 +0200)
committerFrank Karlitschek <frank@owncloud.org>
Fri, 1 Jun 2012 18:00:33 +0000 (20:00 +0200)
lib/util.php

index 628c23f4cba5e8b4949a144064d37f898b10eda4..fda60587b829648154c5c4dc2dc9d38f0dd3b9ae 100644 (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;
        }