Bug #18199 Updated: is_array check fails???
| From: | sander@php.net | Date: | Sat, 06 Jul 2002 12:02:29 +0000 |
| Subject: | Bug #18199 Updated: is_array check fails??? | ||
| References: | 1 | Groups: | php.bugs |
| Request: | Send a blank email to php-bugs+get-13306@lists.php.net to get a copy of this message | ||
ID: 18199
Updated by: sander@php.net
Reported By: webmaster@aglaea.net
-Status: Open
+Status: Feedback
Bug Type: Arrays related
Operating System: Linux
PHP Version: 4.1.2
New Comment:
Can you provide a simple selfcontained sample script that reproduces
your problem?
Previous Comments:
------------------------------------------------------------------------
[2002-07-06 07:52:28] webmaster@aglaea.net
Unless I'm dementing fast, this bit of code:
$teams = $league->getTeams();
if (is_array($teams)) {
array_walk($teams, 'InDiv');
}
should not do the array_walk when $teams is either 'null' or '0', but
in my page, it keeps on trying to do the array_walk, which obviously
goes wrong.
I've also tried:
if ($teams) {
and
if ($teams != null)
you can see the precise details of my PHP-version and system at
www.korfballworld.com/test/info.php
------------------------------------------------------------------------
--
Edit this bug report at http://bugs.php.net/?id=18199&edit=1