Url constructor should use the id from the database query as the $iUrlId argument to the

constructor doesn't need to be valid
This commit is contained in:
Alexander Nicolaysen Sørnes
2007-06-11 01:08:21 +00:00
committed by WineHQ
parent c8b0ff974a
commit 74ccc53af3

View File

@@ -39,7 +39,7 @@ class Url {
// we are working on an existing url // we are working on an existing url
if($oRow) if($oRow)
{ {
$this->iUrlId = $iUrlId; $this->iUrlId = $oRow->id;
$this->sDescription = $oRow->description; $this->sDescription = $oRow->description;
$this->iAppId = $oRow->appId; $this->iAppId = $oRow->appId;
$this->iVersionId = $oRow->versionId; $this->iVersionId = $oRow->versionId;