[Fusionforge-commits] r10467 - trunk/src/www/project/admin

Franck VILLAUME nerville at libremir.placard.fr.eu.org
Mon Sep 13 23:17:26 CEST 2010


Author: nerville
Date: 2010-09-13 23:17:26 +0200 (Mon, 13 Sep 2010)
New Revision: 10467

Modified:
   trunk/src/www/project/admin/users.php
Log:
fix case getRealName returns empty string

Modified: trunk/src/www/project/admin/users.php
===================================================================
--- trunk/src/www/project/admin/users.php	2010-09-13 20:57:48 UTC (rev 10466)
+++ trunk/src/www/project/admin/users.php	2010-09-13 21:17:26 UTC (rev 10467)
@@ -269,7 +269,14 @@
 			  <input type="hidden" name="submit" value="y" />
 			  <input type="hidden" name="user_id" value="'.$user->getID().'" />
 			  <input type="hidden" name="group_id" value="'. $group_id .'" />
-			  <a href="/users/'.$user->getUnixName().'">'.$user->getRealName().'</a>
+			  <a href="/users/'.$user->getUnixName().'">';
+	$display = $user->getRealName();
+	if (!empty($display)) {
+		echo $user->getRealName();
+	} else {
+		echo $user->getUnixName();
+	}
+	echo '</a>
 			</td>
 			<td style="white-space: nowrap; text-align: right;">';
 




More information about the Fusionforge-commits mailing list