From 434de30b9c098a71f689f833ba84afbec33ac4a8 Mon Sep 17 00:00:00 2001 From: Chris Morgan Date: Sat, 21 Apr 2007 01:17:38 +0000 Subject: [PATCH] Correct a few undefined variable errors brought out by the unit tests --- include/downloadurl.php | 1 + include/version_queue.php | 3 ++- 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/include/downloadurl.php b/include/downloadurl.php index 8bab015..8bb4b9a 100644 --- a/include/downloadurl.php +++ b/include/downloadurl.php @@ -301,6 +301,7 @@ class downloadurl /* Process a form made only for submitting one URL */ function processFormSingle($iVersionId, $aValues, $bUnQueue = FALSE) { + $iId = null; if($hResult = appData::getData($iVersionId, "downloadurl", TRUE, TRUE)) { $oObject = mysql_fetch_object($hResult); diff --git a/include/version_queue.php b/include/version_queue.php index 389f54c..2a5b832 100644 --- a/include/version_queue.php +++ b/include/version_queue.php @@ -9,11 +9,12 @@ class version_queue function version_queue($iVersionId = null) { $this->oVersion = new version($iVersionId); + $iTestingId = null; if($iVersionId) { $iTestingId = testData::getNewestTestIdFromVersionId($iVersionId, - $this->oVersion->sQueued); + $this->oVersion->sQueued); } $this->oTestDataQueue = new testData_queue($iTestingId);