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

@@ -622,25 +622,17 @@ class Version {
/* is this user supposed to view this version? */
if(!$_SESSION['current']->canViewVersion($this))
{
util_show_error_page("Something went wrong with the application or version id");
exit;
}
$oApp = new Application($this->iAppId);
if(!$oApp->iAppId)
{
// Oops! application not found or other error. do something
util_show_error_page('Internal Database Access Error. No App found.');
exit;
}
// Oops! application not found or other error. do something
if(!$oApp->iAppId)
util_show_error_page('Internal Database Access Error. No App found.');
// Oops! Version not found or other error. do something
if(!$this->iVersionId)
{
// Oops! Version not found or other error. do something
util_show_error_page('Internal Database Access Error. No Version Found.');
exit;
}
// header
apidb_header("Viewing App- ".$oApp->sName." Version - ".$this->sName);