From: Frank Karlitschek Date: Fri, 1 Jun 2012 18:00:33 +0000 (+0200) Subject: add a check for pdo X-Git-Tag: v4.5.0beta1~74^2~425^2~5^2 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=4aa96de53784e2765943df9fb6d7a2b87c87036f;p=nextcloud-server.git add a check for pdo --- 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.
','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.
','hint'=>'Please ask your server administrator to install the module.'); + } return $errors; }