phpgroupware-developers
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [phpGroupWare-developers] [patch] Fix for NOTICEs in preferences/cha


From: Sigurd Nes
Subject: Re: [phpGroupWare-developers] [patch] Fix for NOTICEs in preferences/changepassword.php
Date: Sun, 10 Jun 2007 20:13:32 +0200
User-agent: Thunderbird 2.0.0.0 (X11/20070423)

Hi,
To check if a key has a value - I think we should use:
if (isset($array['key']) && $array['key'])

and to check if it has no value:
if (!isset($array['key']) || !$array['key'])

What do you think?

Regards

Sigurd


Johan Gunnarsson wrote:
> Hi,
> I stumbled upon some NOTICE errors while hacking on a hook on password
> changes. See attachment.
>
> (This is my first phpgw patch - yay!)
> ------------------------------------------------------------------------
>
> _______________________________________________
> phpGroupWare-developers mailing list
> address@hidden
> http://lists.gnu.org/mailman/listinfo/phpgroupware-developers





reply via email to

[Prev in Thread] Current Thread [Next in Thread]