cvs: phpweb /include mirrortable.inc

From: Date: Mon, 14 Jul 2008 07:57:19 +0000
Subject: cvs: phpweb /include mirrortable.inc
Groups: php.webmaster 
Request: Send a blank email to php-webmaster+get-2096@lists.php.net to get a copy of this message
bjori Mon Jul 14 07:57:19 2008 UTC Modified files: /phpweb/include mirrortable.inc Log: Don't print out a bogus iamge for invalid country http://cvs.php.net/viewvc.cgi/phpweb/include/mirrortable.inc?r1=1.6&r2=1.7&diff_format=u Index: phpweb/include/mirrortable.inc diff -u phpweb/include/mirrortable.inc:1.6 phpweb/include/mirrortable.inc:1.7 --- phpweb/include/mirrortable.inc:1.6 Wed Aug 13 14:35:12 2003 +++ phpweb/include/mirrortable.inc Mon Jul 14 07:57:19 2008 @@ -1,5 +1,5 @@ <?php -/* $Id: mirrortable.inc,v 1.6 2003/08/13 14:35:12 goba Exp $ */ +/* $Id: mirrortable.inc,v 1.7 2008/07/14 07:57:19 bjori Exp $ */ /* This file includes functions to find close mirrors and list @@ -87,10 +87,14 @@ // Print out a country header, if a new country is found if ($prevcc != $country && $country != "xx") { echo " <tr>\n <th class=\"flag\">"; - print_image( - 'flags/' . strtolower($country) . '.png', - $COUNTRIES[$country] - ); + if ($country == 'xxx') { + echo "&nbsp;"; + } else { + print_image( + 'flags/' . strtolower($country) . '.png', + $COUNTRIES[$country] + ); + } echo "</th>\n" . ' <th class="ch" colspan="' . $cnf['datacols'] . '">' . $COUNTRIES[$country] . "</th>\n </tr>\n";

« previous php.webmaster (#2096) next »