From 80e30b65a8db611bbe1c8bd55ba600cc83007db9 Mon Sep 17 00:00:00 2001 From: Chris Morgan Date: Sat, 17 Mar 2007 21:00:41 +0000 Subject: [PATCH] Distributions don't have descriptions, so don't try to retrieve this entry from the database row object. Call out to objectMakeUrl() instead of using its address. Fixes two errors exposed by the unit tests. --- include/distribution.php | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/include/distribution.php b/include/distribution.php index 52e3af3..6231865 100644 --- a/include/distribution.php +++ b/include/distribution.php @@ -10,7 +10,6 @@ require_once(BASE."include/util.php"); class distribution { var $iDistributionId; var $sName; - var $sDescription; var $sUrl; var $sSubmitTime; var $iSubmitterId; @@ -37,7 +36,6 @@ class distribution { { $this->iDistributionId = $iDistributionId; $this->sName = $oRow->name; - $this->sDescription = $oRow->description; $this->sUrl = $oRow->url; $this->sSubmitTime = $oRow->submitTime; $this->iSubmitterId = $oRow->submitterId; @@ -288,7 +286,7 @@ class distribution { { $sSubject = "Distribution ".$this->sName." added by ". $_SESSION['current']->sRealname; - $sMsg = $this->objectMakeUrl."\n"; + $sMsg = $this->objectMakeUrl()."\n"; if($this->iSubmitterId) { $oSubmitter = new User($this->iSubmitterId);