Version::Version() was using $this->iVersionId before the value was set

This commit is contained in:
Chris Morgan
2007-06-10 22:15:35 +00:00
committed by WineHQ
parent 0a5725f6d6
commit 7e4a084fd3

View File

@@ -50,8 +50,6 @@ class Version {
/*
* We fetch the data related to this version.
*/
if(!$this->iVersionId)
{
if(!$oRow)
{
$sQuery = "SELECT *
@@ -76,7 +74,6 @@ class Version {
$this->sLicense = $oRow->license;
}
}
}
/**
@@ -736,7 +733,9 @@ class Version {
// URLs
if($sUrls = url::display($this->iVersionId))
{
echo $sUrls;
}
// rating Area
echo "<tr class=\"$sMaintainerColor\" valign=\"top\"><td><b>Maintainer&#8217;s Rating</b></td><td>".$this->sTestedRating."</td></tr>\n";