diff options
author | Thomas Tanghus <thomas@tanghus.net> | 2012-05-04 23:53:29 +0200 |
---|---|---|
committer | Thomas Tanghus <thomas@tanghus.net> | 2012-05-04 23:53:29 +0200 |
commit | 2c264f836c382f3c3555918484c749d0633a8308 (patch) | |
tree | a8c56231510705d8449b77b9ca976c1b2ab0773d /apps/contacts/photo.php | |
parent | 76b8d062846a2bfb84d0db7164ea0d8e44f3dad0 (diff) | |
download | nextcloud-server-2c264f836c382f3c3555918484c749d0633a8308.tar.gz nextcloud-server-2c264f836c382f3c3555918484c749d0633a8308.zip |
Contacts: Better checks for GD library.
Diffstat (limited to 'apps/contacts/photo.php')
-rwxr-xr-x | apps/contacts/photo.php | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/apps/contacts/photo.php b/apps/contacts/photo.php index 6fe68cefb6d..729c2dfbcfd 100755 --- a/apps/contacts/photo.php +++ b/apps/contacts/photo.php @@ -26,6 +26,11 @@ if(is_null($id)) { getStandardImage(); } +if(!extension_loaded('gd') || !function_exists('gd_info')) { + OCP\Util::writeLog('contacts','photo.php. GD module not installed',OCP\Util::DEBUG); + getStandardImage(); +} + $contact = OC_Contacts_App::getContactVCard($id); $image = new OC_Image(); if(!$image) { |