From: Arthur Schiwon Date: Tue, 17 Apr 2012 17:09:41 +0000 (+0200) Subject: check if PHP mod GD is installed X-Git-Tag: v4.0.0beta~261 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=57b8ff890c75169521041b4eb9cdf4582b68e551;p=nextcloud-server.git check if PHP mod GD is installed --- diff --git a/lib/util.php b/lib/util.php index 55cef99c2e2..ec70fd91cb5 100644 --- a/lib/util.php +++ b/lib/util.php @@ -240,6 +240,9 @@ class OC_Util { if(!function_exists('json_encode')){ $errors[]=array('error'=>'PHP module JSON is not installed.
','hint'=>'Please ask your server administrator to install the module.'); } + if(!function_exists('imagepng')){ + $errors[]=array('error'=>'PHP module GD is not installed.
','hint'=>'Please ask your server administrator to install the module.'); + } return $errors; }