If there is no previous rating just print out the rating that the version was changed to

This commit is contained in:
WineHQ
2005-05-09 22:10:51 +00:00
parent 44356371ab
commit 8d2792cbd8

View File

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