Fix: Link to phone with tel: must be only onto terminal that support

protocol "tel:"
This commit is contained in:
Laurent Destailleur
2013-05-03 10:06:54 +02:00
parent fc0d5abd14
commit 2e4c73ebc4

View File

@@ -1229,7 +1229,7 @@ function dol_print_phone($phone,$country='',$cid=0,$socid=0,$addlink='',$separ="
if (! empty($addlink)) // Link on phone number + link to add action (if conf->global->AGENDA_ADDACTIONFORPHONE set)
{
if (! empty($conf->browser)) // If phone, we use link of phone
if (! empty($conf->browser->phone)) // If phone, we use link of phone
{
$newphone ='<a href="tel:'.$phone.'"';
$newphone.='>'.$phone.'</a>';