mirror of
https://github.com/EGroupware/egroupware.git
synced 2024-12-23 23:29:31 +01:00
* Addressbook: fixed not working call auf addressbook_ui::(view|edit) with contact_id being a uid
This commit is contained in:
parent
9e873a7092
commit
8e586c5037
@ -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));
|
||||
}
|
||||
|
@ -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);
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user