little changes
authorStricted <info@nexus-irc.de>
Tue, 25 Jun 2013 15:32:08 +0000 (17:32 +0200)
committerStricted <info@nexus-irc.de>
Tue, 25 Jun 2013 15:32:08 +0000 (17:32 +0200)
index.cgi

index 735dfc89e7c7d845e07ce47a671cf9997cd3d1e6..79770e2df32c98ae7e82f0770f82ed273fedc051 100755 (executable)
--- a/index.cgi
+++ b/index.cgi
@@ -5657,13 +5657,8 @@ sub git_project_list_rows {
                      "</td>\n" .
                      "</tr>\n";
        }
-       print "<tr>";
-       if ($check_forks) {
-               print "<td colspan=\"2\">&nbsp;</td>";
-       } else {
-               print "<td colspan=\"1\">&nbsp;</td>";
-       }
-       print "<td>".($to + 1)." project".($to = 1 ? "s" : "")." found</td><td colspan=\"3\">&nbsp;</td></tr>";
+       print '<tr><td colspan="'.($check_forks ? '1' : '2').'">&nbsp;</td>';
+       print "<td>".($to + 1)." project".($to > 1 ? ($to < 1 ? "" : "s") : "")." found</td><td colspan=\"3\">&nbsp;</td></tr>";
 }
 
 sub git_project_list_body {