fix wrong/old class-name

This commit is contained in:
Ralf Becker 2016-04-26 12:27:40 +00:00
parent bd26e2aeaf
commit 70710d26e2

View File

@ -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;