From 6accb033864ed7f0e4c2874cc9137ba050c24821 Mon Sep 17 00:00:00 2001 From: Gunnar Wrobel Date: Thu, 30 Dec 2010 11:48:06 +0100 Subject: [PATCH] Bail out if the imap_getannotation function is missing. --- framework/Kolab_Storage/lib/Horde/Kolab/Storage/Driver/Cclient.php | 5 +++++ 1 file changed, 5 insertions(+) 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) { -- 2.11.0