cvs: phpweb / index.php

From: Date: Tue, 20 Feb 2007 07:54:41 +0000
Subject: cvs: phpweb / index.php
Groups: php.mirrors 
Request: Send a blank email to php-mirrors+get-34397@lists.php.net to get a copy of this message
sfox Tue Feb 20 07:54:41 2007 UTC Modified files: /phpweb index.php Log: Some protection against a dry month http://cvs.php.net/viewvc.cgi/phpweb/index.php?r1=1.871&r2=1.872&diff_format=u Index: phpweb/index.php diff -u phpweb/index.php:1.871 phpweb/index.php:1.872 --- phpweb/index.php:1.871 Tue Feb 20 06:08:31 2007 +++ phpweb/index.php Tue Feb 20 07:54:41 2007 @@ -196,18 +196,20 @@ echo ' <div id="confTeaser">' . "\n"; echo " <table>\n"; foreach($CONF_TEASER as $k => $a) { - echo " <tr>\n <td valign='top' style='white-space: nowrap'>".$categories[$k].":</td>\n"; - echo " <td valign='top'>\n"; - echo ' <ul class="' .$k. '">' . "\n"; - $count = 0; - $a = preg_replace("'([A-Za-z0-9])([\s\:\-\,]*?)call for(.*?)$'i", "$1", $a); - foreach($a as $url => $title) { - if ($count++ >= 4) { - break; + if (is_array($a) && count($a)) { + echo " <tr>\n <td valign='top' style='white-space: nowrap'>".$categories[$k].":</td>\n"; + echo " <td valign='top'>\n"; + echo ' <ul class="' .$k. '">' . "\n"; + $count = 0; + $a = preg_replace("'([A-Za-z0-9])([\s\:\-\,]*?)call for(.*?)$'i", "$1", $a); + foreach($a as $url => $title) { + if ($count++ >= 4) { + break; + } + echo ' <li><a href="' . $url. '">' . $title. '</a></li>' . "\n"; } - echo ' <li><a href="' . $url. '">' . $title. '</a></li>' . "\n"; - } - echo " </ul>\n </td>\n </tr>\n"; + echo " </ul>\n </td>\n </tr>\n"; + } // if set } echo " </table>\n </div>\n\n<br />\n"; }

« previous php.mirrors (#34397) next »