Skip to content

Commit

Permalink
Fix: Can not set option when using in nojs mode.
Browse files Browse the repository at this point in the history
  • Loading branch information
eldy committed Aug 3, 2014
1 parent 6ff57e5 commit 4c91788
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions htdocs/admin/agenda_other.php
Expand Up @@ -110,11 +110,11 @@
}
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>';
}
Expand Down

0 comments on commit 4c91788

Please sign in to comment.