From 6e0605899e1a93c71e794f128428a707ef648779 Mon Sep 17 00:00:00 2001 From: Ralf Becker Date: Sun, 9 Jul 2006 20:07:09 +0000 Subject: [PATCH] an other fix for check_perms (used via SyncML) --- addressbook/inc/class.bocontacts.inc.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/addressbook/inc/class.bocontacts.inc.php b/addressbook/inc/class.bocontacts.inc.php index 0977ebf02d..42a127d9c6 100755 --- a/addressbook/inc/class.bocontacts.inc.php +++ b/addressbook/inc/class.bocontacts.inc.php @@ -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; }