Added function that redirects user to index if no modules are enabled;
Added message that the user should disable the portal if all modules are disabled
This commit is contained in:
@@ -113,8 +113,15 @@ while ($row = $db->sql_fetchrow($result))
|
||||
}
|
||||
unset($template_module);
|
||||
}
|
||||
$module_count = $db->sql_affectedrows();
|
||||
$db->sql_freeresult($result);
|
||||
|
||||
// Redirect to index if there are currently no active modules
|
||||
if($module_count < 1)
|
||||
{
|
||||
redirect(reapply_sid($phpbb_root_path . 'index.' . $phpEx));
|
||||
}
|
||||
|
||||
// Assign specific vars
|
||||
$template->assign_vars(array(
|
||||
'S_SMALL_BLOCK' => true,
|
||||
|
||||
Reference in New Issue
Block a user