From 70710d26e23f4b24bf6b2a1163f502733934797e Mon Sep 17 00:00:00 2001 From: Ralf Becker Date: Tue, 26 Apr 2016 12:27:40 +0000 Subject: [PATCH] fix wrong/old class-name --- api/src/Contacts.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/api/src/Contacts.php b/api/src/Contacts.php index 9cce9354b5..d950f7fce7 100755 --- a/api/src/Contacts.php +++ b/api/src/Contacts.php @@ -1067,7 +1067,7 @@ class Contacts extends Contacts\Storage function read($contact_id, $ignore_acl=false) { // get so_sql_cf to read private customfields too, if we ignore acl - if ($ignore_acl && is_a($this->somain, 'addressbook_sql')) + if ($ignore_acl && is_a($this->somain, __CLASS__.'\\Sql')) { $cf_backup = (array)$this->somain->customfields; $this->somain->customfields = Storage\Customfields::get('addressbook', true); @@ -1128,6 +1128,7 @@ class Contacts extends Contacts\Storage } if ((!is_array($contact) || !isset($contact['owner'])) && + !($contact = parent::read(is_array($contact) ? $contact['id'] : $contact))) { return null;