]> source.dussan.org Git - nextcloud-server.git/commitdiff
check if PHP mod GD is installed
authorArthur Schiwon <blizzz@owncloud.com>
Tue, 17 Apr 2012 17:09:41 +0000 (19:09 +0200)
committerArthur Schiwon <blizzz@owncloud.com>
Tue, 17 Apr 2012 17:09:41 +0000 (19:09 +0200)
lib/util.php

index 55cef99c2e2113277cf6eaa69b962e6d609bf94c..ec70fd91cb5b6232a0379718ed221a28ffe106d0 100644 (file)
@@ -240,6 +240,9 @@ class OC_Util {
                if(!function_exists('json_encode')){
                        $errors[]=array('error'=>'PHP module JSON is not installed.<br/>','hint'=>'Please ask your server administrator to install the module.');
                }
+               if(!function_exists('imagepng')){
+                       $errors[]=array('error'=>'PHP module GD is not installed.<br/>','hint'=>'Please ask your server administrator to install the module.');
+               }
 
                return $errors;
        }