[dev] Re: [cvs] commit: imp folders.php
Jan Schneider
jan at horde.org
Sun Feb 9 14:14:17 PST 2003
Zitat von Chuck Hagenbuch <chuck at horde.org>:
> Quoting Jan Schneider <jan at horde.org>:
>
> > Log:
> > This value is -1 under certain circumstances, so empty() won't work
> > here.
>
> I don't understand:
>
>
> PHP Code:
>
> $foo = -1;
> var_dump(!empty($foo));
>
> Result:
>
> bool(true)
Correct, but the 'newmsg' was -1 here if I had a new message during the
_last_ call. Strange thing, and I don't know why it happens, but if -1 is
returned it doesn't mean that there are new messages, hence the check for
greater than 0.
Jan.
--
http://www.horde.org - The Horde Project
http://www.ammma.de - discover your knowledge
http://www.tip4all.de - Deine private Tippgemeinschaft
More information about the dev
mailing list