Fix: Can not set option when using in nojs mode.

This commit is contained in:
Laurent Destailleur 2014-08-03 22:08:25 +02:00
parent 6ff57e57c2
commit 4c91788941

View File

@ -110,11 +110,11 @@ if ($conf->use_javascript_ajax)
}
else
{
if($conf->global->AGENDA_USE_EVENT_TYPE == 0)
if (empty($conf->global->AGENDA_USE_EVENT_TYPE))
{
print '<a href="'.$_SERVER['PHP_SELF'].'?action=set_AGENDA_USE_EVENT_TYPE">'.img_picto($langs->trans("Disabled"),'off').'</a>';
}
else if($conf->global->BUSINESS_VISIBLE_TO_ALL_BY_DEFAULT == 1)
else
{
print '<a href="'.$_SERVER['PHP_SELF'].'?action=del_AGENDA_USE_EVENT_TYPE">'.img_picto($langs->trans("Enabled"),'on').'</a>';
}