Return null on error for UID queries (to remain backwards compatible)
This commit is contained in:
parent
22a1c7a7ee
commit
acbd45001c
1 changed files with 8 additions and 2 deletions
|
@ -453,7 +453,10 @@ class kolab_storage_cache
|
|||
);
|
||||
|
||||
if ($this->db->is_error($sql_result)) {
|
||||
if (!$uids) $result->set_error(true);
|
||||
if ($uids) {
|
||||
return null;
|
||||
}
|
||||
$result->set_error(true);
|
||||
return $result;
|
||||
}
|
||||
|
||||
|
@ -484,7 +487,10 @@ class kolab_storage_cache
|
|||
}
|
||||
|
||||
if ($index->is_error()) {
|
||||
if (!$uids) $result->set_error(true);
|
||||
if ($uids) {
|
||||
return null;
|
||||
}
|
||||
$result->set_error(true);
|
||||
return $result;
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue