From 8d2792cbd87d9abb66ce5ea52d3b7a439800edbf Mon Sep 17 00:00:00 2001 From: WineHQ Date: Mon, 9 May 2005 22:10:51 +0000 Subject: [PATCH] If there is no previous rating just print out the rating that the version was changed to --- include/version.php | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/include/version.php b/include/version.php index 58e9bdd..0f20135 100644 --- a/include/version.php +++ b/include/version.php @@ -189,7 +189,12 @@ class Version { $sUpdate = compile_update_string(array('maintainer_rating' => $sTestedRating)); if (!query_appdb("UPDATE appVersion SET maintainer_rating = '".$sTestedRating."' WHERE versionId = ".$this->iVersionId)) return false; - $sWhatChanged .= "Rating was changed from ".$this->sTestedRating." to ".$sTestedRating.".\n\n"; + + if($this->sTestedRating) + $sWhatChanged .= "Rating was changed from ".$this->sTestedRating." to ".$sTestedRating.".\n\n"; + else + $sWhatChanged .= "Rating was changed to ".$sTestedRating.".\n\n"; + $this->sTestedRating = $sTestedRating; }