Remove unnecessary exit calls after redirect() and util_show_error_page() calls

This commit is contained in:
Jonathan Ernst
2006-07-06 17:59:52 +00:00
committed by WineHQ
parent 735a2bc65f
commit 54c484de8c
36 changed files with 17 additions and 153 deletions

View File

@@ -83,10 +83,7 @@ function display_bundle($iAppId)
}
if(!is_numeric($aClean['iAppId']) && !is_numeric($aClean['iVersionId']))
{
util_show_error_page("Something went wrong with the application or version id");
exit;
}
if ($aClean['sSub'])
{
@@ -99,7 +96,6 @@ if ($aClean['sSub'])
$oBuglink = new bug($aClean['iBuglinkId']);
$oBuglink->delete();
redirect(apidb_fullurl("appview.php?iVersionId=".$aClean['iVersionId']));
exit;
}
}
@@ -112,7 +108,6 @@ if ($aClean['sSub'])
$oBuglink = new bug($aClean['iBuglinkId']);
$oBuglink->unqueue();
redirect(apidb_fullurl("appview.php?iVersionId=".$aClean['iVersionId']));
exit;
}
}
@@ -121,14 +116,12 @@ if ($aClean['sSub'])
$oBuglink = new bug();
$oBuglink->create($aClean['iVersionId'],$aClean['iBuglinkId']);
redirect(apidb_fullurl("appview.php?iVersionId=".$aClean['iVersionId']));
exit;
}
if($aClean['sSub'] == 'StartMonitoring')
{
$oMonitor = new Monitor();
$oMonitor->create($_SESSION['current']->iUserId,$aClean['iAppId'],$aClean['iVersionId']);
redirect(apidb_fullurl("appview.php?iVersionId=".$aClean['iVersionId']));
exit;
}
if($aClean['sSub'] == 'StopMonitoring')
{
@@ -139,7 +132,6 @@ if ($aClean['sSub'])
$oMonitor->delete();
}
redirect(apidb_fullurl("appview.php?iVersionId=".$aClean['iVersionId']));
exit;
}
}
@@ -159,7 +151,6 @@ if($aClean['iAppId'])
{
// Oops! Called with no params, bad llamah!
util_show_error_page('Page Called with No Params!');
exit;
}
apidb_footer();