If the admin tries to view an application that does not exist, print an error

and exit instead of fetching useless data as though there actually was an
application.
This commit is contained in:
Alexander Nicolaysen Sørnes
2007-01-04 00:43:58 +00:00
committed by WineHQ
parent adf4a06b72
commit 582ee561fc

View File

@@ -145,6 +145,10 @@ if ($aClean['sSub'])
$oApp = new Application($aClean['iAppId']);
/* Check that the application actually exists */
if(!$oApp->iAppId)
util_show_error_page_and_exit("There is no application with that ID.");
// if we are processing a queued application there MUST be an implicitly queued
// version to go along with it.
$hResult = query_parameters("SELECT versionId from appVersion where appId='?';", $aClean['iAppId']);