Version::Version() was using $this->iVersionId before the value was set
This commit is contained in:
@@ -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’s Rating</b></td><td>".$this->sTestedRating."</td></tr>\n";
|
||||
|
||||
Reference in New Issue
Block a user