Skip to content

Commit

Permalink
fixed determination of userpanel.enabled_modules variable absence
Browse files Browse the repository at this point in the history
  • Loading branch information
chilek committed Aug 27, 2015
1 parent 479c3b7 commit 5cdabf9
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions userpanel/lib/setup_functions.php
Original file line number Diff line number Diff line change
Expand Up @@ -37,8 +37,8 @@ function module_setup()
$SMARTY->assign('reminder_mail_body', ConfigHelper::getConfig('userpanel.reminder_mail_body', "ID: %id\nPIN: %pin"));
$SMARTY->assign('reminder_sms_body', ConfigHelper::getConfig('userpanel.reminder_sms_body', "ID: %id, PIN: %pin"));
$SMARTY->assign('auth_type', ConfigHelper::getConfig('userpanel.auth_type', 1));
$enabled_modules = ConfigHelper::getConfig('userpanel.enabled_modules', '');
if (empty($enabled_modules)) {
$enabled_modules = ConfigHelper::getConfig('userpanel.enabled_modules', null, true);
if (is_null($enabled_modules)) {
$enabled_modules = array();
if (!empty($USERPANEL->MODULES))
foreach ($USERPANEL->MODULES as $module)
Expand Down

0 comments on commit 5cdabf9

Please sign in to comment.