[Koha-patches] [PATCH] (bug #3193) fix the comtd value in acqui-home.pl

Joe Atzberger joe.atzberger at liblime.com
Wed May 6 17:03:20 CEST 2009


On Wed, May 6, 2009 at 6:26 AM, Nahuel ANGELINETTI <
nahuel.angelinetti at biblibre.com> wrote:

> +        if ( !$left || $left eq '' ) {
>

That test is no different than:
if (!$left)...

That is, the second part of the conditional will never be evaluated true,
since empty string evaluates to false and "! FALSE" will have already proven
true on the first part.

You can confirm with:
perl -e 'my $x = ""; print ($x ? "yes\n" : "no\n");'

-- 
Joe Atzberger
LibLime - Open Source Library Solutions
-------------- next part --------------
An HTML attachment was scrubbed...
URL: </pipermail/koha-patches/attachments/20090506/d9e79749/attachment-0002.htm>


More information about the Koha-patches mailing list