[Fusionforge-commits] r7103 - trunk/gforge/www/account

Gonéri Le Bouder goneri at libremir.placard.fr.eu.org
Wed Mar 4 17:12:51 CET 2009


Author: goneri
Date: 2009-03-04 17:12:51 +0100 (Wed, 04 Mar 2009)
New Revision: 7103

Modified:
   trunk/gforge/www/account/register.php
Log:
avoid a warning if register_error is unset

Modified: trunk/gforge/www/account/register.php
===================================================================
--- trunk/gforge/www/account/register.php	2009-03-04 16:12:34 UTC (rev 7102)
+++ trunk/gforge/www/account/register.php	2009-03-04 16:12:51 UTC (rev 7103)
@@ -85,7 +85,14 @@
 $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-commits mailing list