From a1b146a8dd54d0141a8b62f726da1d29037b484f Mon Sep 17 00:00:00 2001 From: Thomas Bruederli Date: Thu, 5 Jun 2014 09:42:22 +0200 Subject: [PATCH] Avoid warnings if dataset is not set --- plugins/kolab_addressbook/lib/rcube_kolab_contacts.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/plugins/kolab_addressbook/lib/rcube_kolab_contacts.php b/plugins/kolab_addressbook/lib/rcube_kolab_contacts.php index c72c0720..ffce9b5e 100644 --- a/plugins/kolab_addressbook/lib/rcube_kolab_contacts.php +++ b/plugins/kolab_addressbook/lib/rcube_kolab_contacts.php @@ -337,7 +337,7 @@ class rcube_kolab_contacts extends rcube_addressbook } } } - else { + else if (isset($this->dataset)) { $this->result->count = isset($query) ? $this->storagefolder->count($query) : 0; foreach ($this->dataset as $idx => $record) { $this->result->add($this->_to_rcube_contact($record));