call the function and do not try searching the non existing array

This commit is contained in:
Lars Kneschke 2006-10-26 04:01:41 +00:00
parent 268d434501
commit d50f13d980

View File

@ -433,7 +433,7 @@ class bocontacts extends socontacts
{
if (!isset($contact['owner'])) // owner not set on update, eg. SyncML
{
if (($old = $this->read[$contact['id']])) // --> try reading the old entry and set it from there
if (($old = $this->read($contact['id']))) // --> try reading the old entry and set it from there
{
$contact['owner'] = $old['owner'];
}