mirror of
https://github.com/EGroupware/egroupware.git
synced 2024-12-26 16:48:49 +01:00
"fix for bug #1643: %t in phone numbers (telephony intergration) does not work"
This commit is contained in:
parent
46eee6b895
commit
32eb1bafa6
@ -226,7 +226,7 @@ class url_widget
|
||||
if (!$number || !$GLOBALS['egw_info']['server']['call_link']) return false;
|
||||
|
||||
static $userphone;
|
||||
if (is_null($userphone) && strpos($GLOBALS['egw_info']['server']['call_link'],'%u') !== false)
|
||||
if (is_null($userphone) && strpos($GLOBALS['egw_info']['server']['call_link'],'%t') !== false)
|
||||
{
|
||||
$user = $GLOBALS['egw']->contacts->read('account:'.$GLOBALS['egw_info']['user']['account_id']);
|
||||
$userphone = is_array($user) ? ($user['tel_work'] ? $user['tel_work'] : $user['tel_home']) : false;
|
||||
|
Loading…
Reference in New Issue
Block a user