Avoid warnings if dataset is not set

This commit is contained in:
Thomas Bruederli 2014-06-05 09:42:22 +02:00
parent cbe184364c
commit a1b146a8dd

View file

@ -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));