diff options
author | Arthur Schiwon <blizzz@owncloud.com> | 2012-04-17 19:09:41 +0200 |
---|---|---|
committer | Arthur Schiwon <blizzz@owncloud.com> | 2012-04-17 19:09:41 +0200 |
commit | 57b8ff890c75169521041b4eb9cdf4582b68e551 (patch) | |
tree | b5f15949ded32a207a7d11921a76f6c05fc46087 /lib/util.php | |
parent | d24abc3b9d68582ea0ba4e16ac1b9eff1eeaa223 (diff) | |
download | nextcloud-server-57b8ff890c75169521041b4eb9cdf4582b68e551.tar.gz nextcloud-server-57b8ff890c75169521041b4eb9cdf4582b68e551.zip |
check if PHP mod GD is installed
Diffstat (limited to 'lib/util.php')
-rw-r--r-- | lib/util.php | 3 |
1 files changed, 3 insertions, 0 deletions
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.<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; } |