From: Gunnar Wrobel Date: Thu, 30 Dec 2010 10:48:06 +0000 (+0100) Subject: Bail out if the imap_getannotation function is missing. X-Git-Url: https://git.internetallee.de/?a=commitdiff_plain;h=6accb033864ed7f0e4c2874cc9137ba050c24821;p=horde.git Bail out if the imap_getannotation function is missing. --- diff --git a/framework/Kolab_Storage/lib/Horde/Kolab/Storage/Driver/Cclient.php b/framework/Kolab_Storage/lib/Horde/Kolab/Storage/Driver/Cclient.php index 9100e724c..6a795d7d3 100644 --- a/framework/Kolab_Storage/lib/Horde/Kolab/Storage/Driver/Cclient.php +++ b/framework/Kolab_Storage/lib/Horde/Kolab/Storage/Driver/Cclient.php @@ -170,6 +170,11 @@ extends Horde_Kolab_Storage_Driver_Base */ public function listAnnotation($annotation) { + if (!function_exists('imap_getannotation')) { + throw new Horde_Kolab_Storage_Exception( + 'This driver is not supported by your variant of PHP. The function "imap_getannotation" is missing!' + ); + } list($entry, $value) = $this->_getAnnotateMoreEntry($annotation); $list = array(); foreach ($this->getMailboxes() as $mailbox) {