Handle the case where a user has an empty realname, the maintainers table looks bad with missing borders around the cell, fill in with a &nbsp in those cases

This commit is contained in:
Chris Morgan
2005-08-25 03:44:15 +00:00
committed by WineHQ
parent 2b3e470adb
commit dd24dd83d5

View File

@@ -78,7 +78,11 @@ if ($_REQUEST['sub'])
echo "<tr class=color4>\n";
echo " <td style=\"$style;border-left:thin solid\">Maintainer summary</td>\n";
echo " <td style=\"$style\"><a href=\"mailto:".$oUser->sEmail."\">".$oUser->sRealname."</a></td>\n";
if($oUser->sRealname == "")
echo " <td style=\"$style\"><a href=\"mailto:".$oUser->sEmail."\">&nbsp</a></td>\n";
else
echo " <td style=\"$style\"><a href=\"mailto:".$oUser->sEmail."\">".$oUser->sRealname."</a></td>\n";
$count = $oUser->getMaintainerCount(true);
if($count == 0)
echo " <td style=\"$style\">&nbsp</td>\n";