Branch 'roundcubemail-plugins-kolab-3.1' - plugins/kolab_addressbook
Aleksander Machniak
machniak at kolabsys.com
Thu Apr 24 15:27:13 CEST 2014
plugins/kolab_addressbook/lib/rcube_kolab_contacts.php | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
New commits:
commit c43c6967075cf5c90baf1fa0d21055c7516e0cf1
Author: Aleksander Machniak <machniak at kolabsys.com>
Date: Thu Apr 24 15:23:41 2014 +0200
Fix invalid result count if search request returns no records (Bug #3013)
diff --git a/plugins/kolab_addressbook/lib/rcube_kolab_contacts.php b/plugins/kolab_addressbook/lib/rcube_kolab_contacts.php
index c8642fc..24a3c7e 100644
--- a/plugins/kolab_addressbook/lib/rcube_kolab_contacts.php
+++ b/plugins/kolab_addressbook/lib/rcube_kolab_contacts.php
@@ -338,7 +338,7 @@ class rcube_kolab_contacts extends rcube_addressbook
}
}
else {
- $this->result->count = $this->storagefolder->count($query);
+ $this->result->count = isset($query) ? $this->storagefolder->count($query) : 0;
foreach ($this->dataset as $idx => $record) {
$this->result->add($this->_to_rcube_contact($record));
}
More information about the commits
mailing list