note 46201 added to function.empty
| From: | LA at osu1 dot php dot net | Date: | Sat, 02 Oct 2004 03:35:29 +0000 |
| Subject: | note 46201 added to function.empty | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-77725@lists.php.net to get a copy of this message | ||
After migrating, I noticed that for some reason, an empty field contained a 'none' value,
and not an 'empty' one. Although on the old server there was no prob, after migrating the
code started to complain, and I had to enter
if (($val == "none") || (empty($val))
Silly, but it finally worked...
----
Manual Page -- http://www.php.net/manual/en/function.empty.php
Edit -- http://master.php.net/manage/user-notes.php?action=edit+46201
Delete -- http://master.php.net/manage/user-notes.php?action=delete+46201&report=yes
Reject -- http://master.php.net/manage/user-notes.php?action=reject+46201&report=yes
Search -- http://master.php.net/manage/user-notes.php