Author: Gonéri Le Bouder <goneri at rulezlan.org>

Gonéri Le Bouder goneri at rulezlan.org
Mon Mar 2 12:33:07 CET 2009


    avoid a warning if register_error is unset

diff --git a/gforge/www/account/register.php b/gforge/www/account/register.php
index 2854215..4d74796 100644
--- a/gforge/www/account/register.php
+++ b/gforge/www/account/register.php
@@ -85,7 +85,14 @@ if (getStringFromRequest('submit')) {
 $HTML->header(array('title'=>'User Account Registration'));
 
 if (isset($feedback)) {
-	print "<p><span class=\"error\">$feedback $register_error</span>";
+
+	print "<p><span class=\"error\">$feedback";
+
+	if (isset($register_error)) {
+		print " $register_error</span>";
+	}
+
+	print "</span>";
 } 
 if (!isset($timezone) || empty($timezone) || !preg_match('/^[-a-zA-Z0-9_/.+]+$/', $timezone)) {
 	$timezone = (isset($sys_default_timezone) ? $sys_default_timezone : 'GMT');




More information about the Fusionforge-general mailing list