Commit e23a4218 authored by Bart Vullings's avatar Bart Vullings

ZP-1324 Carddav, $message->asbody->data can be NULL. Released under the Affero...

ZP-1324 Carddav, $message->asbody->data can be NULL. Released under the Affero GNU General Public License (AGPL) version 3.
parent 3ccbfd83
......@@ -1263,7 +1263,7 @@ class BackendCardDAV extends BackendDiff implements ISearchProvider {
$val .= $this->escape($message->$i);
$val.=';';
}
if ($k == 'body' && isset($message->asbody)) {
if ($k == 'body' && isset($message->asbody) && isset($message->asbody->data)) {
$val = stream_get_contents($message->asbody->data);
}
if (empty($val) || preg_match('/^(\;)+$/', $val) == 1)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment