From 03b614fd1003642a1c6d4e3b3391a123d4d2dd8f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Alexander=20Nicolaysen=20S=C3=B8rnes?= Date: Wed, 23 Jan 2008 00:31:24 +0100 Subject: [PATCH] application_queue: Guard against unitialized variables --- include/application_queue.php | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) diff --git a/include/application_queue.php b/include/application_queue.php index 06533d8..82c8383 100644 --- a/include/application_queue.php +++ b/include/application_queue.php @@ -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);