* Addressbook: fixed not working call auf addressbook_ui::(view|edit) with contact_id being a uid

This commit is contained in:
Ralf Becker 2013-03-01 08:25:29 +00:00
parent 9e873a7092
commit 8e586c5037
2 changed files with 2 additions and 2 deletions

View File

@ -551,7 +551,7 @@ class addressbook_so
*/
function read($contact_id)
{
if (!is_array($contact_id) && substr($contact_id,0,8) == 'account:')
if (!is_array($contact_id) && is_numeric($contact_id) && substr($contact_id,0,8) == 'account:')
{
$contact_id = array('account_id' => (int) substr($contact_id,8));
}

View File

@ -714,7 +714,7 @@ class addressbook_sql extends so_sql_cf
if (!is_array($keys) && !is_numeric($keys))
{
$keys = array('contact_uid' => $keys);
$keys = array('uid' => $keys);
}
$contact = parent::read($keys,$extra_cols,$join);