handle calendar replacements (search for events) only when there are calendar replacements required

This commit is contained in:
Klaus Leithoff 2010-05-26 12:47:50 +00:00
parent 5b6a39cce8
commit 399abd4060

View File

@ -45,9 +45,9 @@ class addressbook_merge extends bo_merge
{
return false;
}
if (strpos($content,'$$calendar/') !== null)
if (!(strpos($content,'$$calendar/') === false))
{
$replacements += $this->calendar_replacements($id,strpos($content,'$$calendar/-1/') !== null);
$replacements += $this->calendar_replacements($id,!(strpos($content,'$$calendar/-1/') === false));
}
return $replacements;
}