Remove unnecessary exit calls after redirect() and util_show_error_page() calls
This commit is contained in:
@@ -21,10 +21,8 @@ $aClean['iVersionId'] = makeSafe($_REQUEST['iVersionId']);
|
||||
|
||||
// deny access if not admin
|
||||
if(!$_SESSION['current']->hasPriv("admin"))
|
||||
{
|
||||
util_show_error_page("Insufficient privileges.");
|
||||
exit;
|
||||
}
|
||||
|
||||
/*
|
||||
* We issued a delete command.
|
||||
*/
|
||||
@@ -40,8 +38,6 @@ if($aClean['sCmd'])
|
||||
redirect($_SERVER['PHP_SELF'].
|
||||
"?iItemsPerPage=".$aClean['iItemsPerPage'].
|
||||
"&iPage=".$aClean['iPage']);
|
||||
exit;
|
||||
|
||||
}
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user