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:
committed by
WineHQ
parent
adf4a06b72
commit
582ee561fc
@@ -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']);
|
||||
|
||||
Reference in New Issue
Block a user