cvs: phpweb / books.php

From: Date: Thu, 15 May 2003 22:57:41 +0000
Subject: cvs: phpweb / books.php
Groups: php.mirrors 
Request: Send a blank email to php-mirrors+get-17726@lists.php.net to get a copy of this message
jacques Thu May 15 18:57:41 2003 EDT Modified files: /phpweb books.php Log: * Missed that Notice echoed in the HTML output. --jm Index: phpweb/books.php diff -u phpweb/books.php:1.187 phpweb/books.php:1.188 --- phpweb/books.php:1.187 Thu May 15 18:53:04 2003 +++ phpweb/books.php Thu May 15 18:57:41 2003 @@ -72,7 +72,11 @@ $stats = array(); foreach ($books[$btype] as $number => $book) { - $stats[$book[7]]++; + if (isset($stats[$book[7]])) { + $stats[$book[7]]++; + } else { + $stats[$book[7]] = 1; + } } arsort($stats, SORT_NUMERIC); return $stats;

« previous php.mirrors (#17726) next »