Quantcast
Channel: Lucee Dev - Latest topics
Viewing all articles
Browse latest Browse all 474

isEmpty() vs Empty() in Lucee 6

$
0
0

I’m noticing a difference between Lucee 5 and Lucee 6.

Previously, when I used the function isEmpty() it behaved the same way as the now deprecated Empty() function - it checked both whether the variable existed and if it was empty.

Now there is a difference. Now it throws an error if the variable is not defined.

Which means writing something annoying like not isDefined("var") or isEmpty(var) to make the check.

Or I can just change it to the deprecated “Empty(var)” which is considerably more concise.

Is this a bug? Or is there a config setting I can tweak to get the old behaviour back for isEmpty? It definitely worked in Lucee 5.

Stack is Commandbox Lucee-Light@6.1.0+00813

3 posts - 2 participants

Read full topic


Viewing all articles
Browse latest Browse all 474

Trending Articles