diff --git a/htdocs/user/clicktodial.php b/htdocs/user/clicktodial.php index 49c701bcc06..b4d7cfc266c 100644 --- a/htdocs/user/clicktodial.php +++ b/htdocs/user/clicktodial.php @@ -119,7 +119,12 @@ if ($_GET["id"]) { print "".'ClickToDial URL'; print ''; - print $form->textwithpicto($conf->global->CLICKTODIAL_URL,$langs->trans("ClickToDialUrlDesc")); + if (empty($conf->global->CLICKTODIAL_URL)) + { + $langs->load("errors"); + print ''.$langs->trans("ErrorModuleSetupNotComplete").''; + } + else print $form->textwithpicto($conf->global->CLICKTODIAL_URL,$langs->trans("ClickToDialUrlDesc")); print ''; print ''; } @@ -155,7 +160,12 @@ if ($_GET["id"]) { print "".'ClickToDial URL'; print ''; - print $form->textwithpicto($conf->global->CLICKTODIAL_URL,$langs->trans("ClickToDialUrlDesc")); + if (empty($conf->global->CLICKTODIAL_URL)) + { + $langs->load("errors"); + print ''.$langs->trans("ErrorModuleSetupNotComplete").''; + } + else print $form->textwithpicto($conf->global->CLICKTODIAL_URL,$langs->trans("ClickToDialUrlDesc")); print ''; print ''; }