From 1f6ba406381d40fa7c29f54ed313c06db1d77ed0 Mon Sep 17 00:00:00 2001 From: Jonathan Ernst Date: Sat, 5 Feb 2005 21:49:39 +0000 Subject: [PATCH] - the user was told his screenshot was accepted when it was rejected altough the message title was correct - the name of original submitter was not quoted in the mail after a screenshot has been unqueued because of a wrong table field selection --- include/screenshot.php | 18 +++++++++--------- 1 file changed, 9 insertions(+), 9 deletions(-) diff --git a/include/screenshot.php b/include/screenshot.php index fa9e258..e2c570f 100644 --- a/include/screenshot.php +++ b/include/screenshot.php @@ -63,8 +63,8 @@ class Screenshot { $this->iAppId = $oRow->appId; $this->iVersionId = $oRow->versionId; $this->sUrl = $oRow->url; - if(!$this->iSubmitterId && $oRow->queueuserid) - $this->iSubmitterId = $oRow->queueuserid; + if(!$this->iSubmitterId && $oRow->userId) + $this->iSubmitterId = $oRow->userId; } } } @@ -256,15 +256,15 @@ class Screenshot { { $sSubject = "Submitted screenshot accepted"; $sMsg = "The screenshot you submitted for ".lookup_app_name($this->appId)." ".lookup_version_name($this->versionId)." has been accepted."; - } else - { + } else + { $sSubject = "Submitted screenshot rejected"; - $sMsg = "The screenshot you submitted for ".lookup_app_name($this->appId)." ".lookup_version_name($this->versionId)." has been accepted."; - } - $sMsg .= $_REQUEST['replyText']."\n"; - $sMsg .= "We appreciate your help in making the Application Database better for all users."; + $sMsg = "The screenshot you submitted for ".lookup_app_name($this->appId)." ".lookup_version_name($this->versionId)." has been rejected."; + } + $sMsg .= $_REQUEST['replyText']."\n"; + $sMsg .= "We appreciate your help in making the Application Database better for all users."; - mail_appdb($oSubmitter->sEmail, $sSubject ,$sMsg); + mail_appdb($oSubmitter->sEmail, $sSubject ,$sMsg); } // the screenshot has been unqueued