mirror of
https://github.com/EGroupware/egroupware.git
synced 2024-12-22 14:41:29 +01:00
bugfix from Jan Schneider <jan-AT-janschneider.net>
This commit is contained in:
parent
0d3caf95a8
commit
ab9899f07b
@ -1724,7 +1724,7 @@ $readonlys['button[vcard]'] = true;
|
|||||||
static $userphone;
|
static $userphone;
|
||||||
if (is_null($userphone))
|
if (is_null($userphone))
|
||||||
{
|
{
|
||||||
$user = $this->read('account_id:'.$GLOBALS['egw_info']['user']['account_id']);
|
$user = $this->read('account:'.$GLOBALS['egw_info']['user']['account_id']);
|
||||||
$userphone = is_array($user) ? ($user['tel_work'] ? $user['tel_work'] : $user['tel_home']) : false;
|
$userphone = is_array($user) ? ($user['tel_work'] ? $user['tel_work'] : $user['tel_home']) : false;
|
||||||
}
|
}
|
||||||
$link = str_replace(array('%1','%u','%t'),array(urlencode($number),$GLOBALS['egw_info']['user']['account_lid'],$userphone),
|
$link = str_replace(array('%1','%u','%t'),array(urlencode($number),$GLOBALS['egw_info']['user']['account_lid'],$userphone),
|
||||||
|
Loading…
Reference in New Issue
Block a user