From 9523066655465f58dff7a39fb0d6d28a391d03c2 Mon Sep 17 00:00:00 2001 From: Jonathan Ernst Date: Thu, 24 Feb 2005 04:49:27 +0000 Subject: [PATCH] Generate a true boolean and not a string so that tests against bqueued don't return true if bqueued="false" instead of false. --- include/application.php | 4 ++-- include/version.php | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/include/application.php b/include/application.php index 709ac9d..cf9ea9b 100644 --- a/include/application.php +++ b/include/application.php @@ -58,7 +58,7 @@ class Application { $this->sKeywords = $oRow->keywords; $this->sDescription = $oRow->description; $this->sWebpage = $oRow->webPage; - $this->bQueued = $oRow->queued; + $this->bQueued = ($oRow->queued=="true")?true:false; } $this->aVersionsIds[] = $oRow->versionId; } @@ -86,7 +86,7 @@ class Application { $this->sKeywords = $oRow->keywords; $this->sDescription = $oRow->description; $this->sWebpage = $oRow->webPage; - $this->bQueued = $oRow->queued; + $this->bQueued = ($oRow->queued=="true")?true:false; } } diff --git a/include/version.php b/include/version.php index 11eb66d..842e18b 100644 --- a/include/version.php +++ b/include/version.php @@ -57,7 +57,7 @@ class Version { $this->sTestedRelease = $oRow->maintainer_release; $this->sTestedRating = $oRow->maintainer_rating; $this->sWebpage = $oRow->webPage; - $this->bQueued = $oRow->queued; + $this->bQueued = ($oRow->queued=="true")?true:false; } }