Alexander Nicolaysen Sørnes : contact. php: Fix some warnings
Alexander Nicolaysen Sørnes
asornes at winehq.org
Sun Nov 22 08:38:23 CST 2009
Module: appdb
Branch: master
Commit: 4134a08fde157a936f34cb87da09ec40df738113
URL: http://source.winehq.org/git/appdb.git/?a=commit;h=4134a08fde157a936f34cb87da09ec40df738113
Author: Alexander Nicolaysen Sørnes <alexander at linux-xqqm.(none)>
Date: Sun Nov 22 05:12:03 2009 +0100
contact.php: Fix some warnings
---
contact.php | 9 +++++----
1 files changed, 5 insertions(+), 4 deletions(-)
diff --git a/contact.php b/contact.php
index 06757c6..9bbb4fd 100644
--- a/contact.php
+++ b/contact.php
@@ -9,6 +9,7 @@ require_once(BASE."/include/incl.php");
*/
$oUser = new User($_SESSION['current']->iUserId);
+$shError = '';
/* Restrict error to logged-in users */
if(!$oUser->isLoggedIn())
@@ -55,7 +56,7 @@ if($sRecipientGroup)
/* Check for errors */
if((!$aClean['sMessage'] || !$aClean['sSubject']) && $aClean['sSubmit'])
{
- $error = "<font color=\"red\">Please enter both a subject and a ".
+ $shError = "<font color=\"red\">Please enter both a subject and a ".
"message.</font>";
$aClean['sSubmit'] = "";
}
@@ -67,7 +68,7 @@ if(!$aClean['sSubmit'])
echo ' ';
echo html_frame_start("Composer",400,"",0);
- echo $error;
+ echo $shError;
echo "<form action=\"".$_SERVER['PHP_SELF']."\" method=\"post\">";
/* User manager */
@@ -96,7 +97,7 @@ if(!$aClean['sSubmit'])
$oTableRow->SetClass("color4");
$oTableRow->AddTextCell("Subject");
$oTableCell = new TableCell("<input type=\"text\" name=\"sSubject\" size=\"71\"".
- " value=\"".$aClean['sSubject']."\">");
+ " value=\"".getInput('sSubject', $aClean)."\">");
$oTableRow->AddCell($oTableCell);
$oTable->AddRow($oTableRow);
@@ -106,7 +107,7 @@ if(!$aClean['sSubmit'])
$oTableCell->SetValign("top");
$oTableRow->AddCell($oTableCell);
$oTableCell = new TableCell("<textarea name=\"sMessage\" rows=\"15\" cols=\"60\">"
- .$aClean['sMessage']."</textarea>");
+ .getInput('sMessage', $aClean)."</textarea>");
$oTableRow->AddCell($oTableCell);
$oTable->AddRow($oTableRow);
More information about the wine-cvs
mailing list