Share » Forums » Developer » a variable witch is defind as integer...

a variable witch is defind as integer becomes an array

a variable witch is defind as integer becomes an array

Tuesday 18 September 2007 5:57:44 am - 5 replies

Author Message

Laurent BOURREL

Tuesday 18 September 2007 6:53:38 am

Where did you find this code ?

Fox Mulder

Tuesday 18 September 2007 6:55:42 am

int the comment in this page http://ez.no/doc/ez_publish/technical_manual/3_8/reference/template_operators/miscellaneous/treemenu

Laurent BOURREL

Tuesday 18 September 2007 8:43:34 am

OK, i didn't see one of the last line :
{set last=$menu}

At the first iteration, last is an integer, and for the next iterations, it becomes an array . That's why there's a test on the value and the level attribute.

Fox Mulder

Tuesday 18 September 2007 11:54:46 pm

Hmmm ...
I think that in first interation $lastlevel is empty and $last is zero so i don't understand how can be done $lastlevel|ne(0) when there is no value for $lastlevel.
i think it is some bug ...

Fox Mulder

Wednesday 19 September 2007 12:21:41 am

and one more thing ...
after first ineration $last becomes an array, so how it is possible to compare $last | ne(0)
(if an array not equal to zero).
So if there is someone who already have those answers, please tell us.

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

36 542 Users on board!

Forums menu