application_queue: Guard against unitialized variables
This commit is contained in:
committed by
Chris Morgan
parent
2f3657f196
commit
03b614fd10
@@ -14,6 +14,9 @@ class application_queue
|
||||
{
|
||||
$this->oApp = new application($iAppId, $oRow);
|
||||
|
||||
$iVersionId = null;
|
||||
$iVendorId = null;
|
||||
|
||||
/* If this is an existing application then there must be a version
|
||||
accompanying it */
|
||||
if($this->oApp->iAppId)
|
||||
@@ -36,11 +39,6 @@ class application_queue
|
||||
}
|
||||
$iVendorId = $this->oApp->iVendorId;
|
||||
}
|
||||
else
|
||||
{
|
||||
$iVersionId = null;
|
||||
$iVendorId = null;
|
||||
}
|
||||
|
||||
$this->oVendor = new vendor($iVendorId);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user