BEWARE: signature of cond() operator changed: ezp 3.2-1 -> 3.2-2

BEWARE: signature of cond() operator changed: ezp 3.2-1 -> 3.2-2

Friday 17 October 2003 4:29:36 am - 2 replies

Modified on Friday 17 October 2003 4:30:25 am by Volker Lenz

Author Message

Jan Borsodi

Friday 17 October 2003 5:28:36 am

The signature hasn't changed however a bug was fixed. The old code did not multiply the counter by two so you got strange results. The syntax is:

cond(MATCH,RESULT[,MATCH,RESULT]...[,DEFAULTRESULT])

--
Amos

Documentation: http://ez.no/ez_publish/documentation
FAQ: http://ez.no/ez_publish/documentation/faq

Volker Lenz

Friday 17 October 2003 5:40:29 am

Yep, you are right. I apologize. The signature is still the same. However, the old 'unfixed' code actually worked in the most used case of a TRIPLE of parameters (fork mode), while the 'fixed' code does no more. I found the new bug & fixed it. Shall post this as new bug report here.

Kind regards

Volker

You must be logged in to post messages in this topic!

Powered by eZ Publish™ CMS Open Source Web Content Management. Copyright © 1999-2014 eZ Systems AS (except where otherwise noted). All rights reserved.