Commit ea955f4b authored by Bart Vullings's avatar Bart Vullings

ZP-1324 Review comment. Released under the Affero GNU General Public License (AGPL) version 3.

parent e23a4218
......@@ -1263,7 +1263,7 @@ class BackendCardDAV extends BackendDiff implements ISearchProvider {
$val .= $this->escape($message->$i);
$val.=';';
}
if ($k == 'body' && isset($message->asbody) && isset($message->asbody->data)) {
if ($k == 'body' && 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