application_queue: Guard against unitialized variables

This commit is contained in:
Alexander Nicolaysen Sørnes
2008-01-23 00:31:24 +01:00
committed by Chris Morgan
parent 2f3657f196
commit 03b614fd10

View File

@@ -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);