an other fix for check_perms (used via SyncML)

This commit is contained in:
Ralf Becker 2006-07-09 20:07:09 +00:00
parent 2dac413bc8
commit 6e0605899e

View File

@ -472,7 +472,8 @@ class bocontacts extends socontacts
*/
function check_perms($needed,$contact)
{
if ((!is_array($contact) || !isset($contact['owner'])) && !($contact = parent::read($contact)))
if ((!is_array($contact) || !isset($contact['owner'])) &&
!($contact = parent::read(is_array($contact) ? $contact['id'] : $contact)))
{
return false;
}