Comment 6 for bug 1486262

Revision history for this message
Aaron Wells (u-aaronw) wrote :

Hah, whoops, that's not a very specific link. I meant to post this: http://php.net/manual/en/function.isset.php#refsect1-function.isset-notes

Down in the "Notes" section:

"Warning: isset() only works with variables as passing anything else will result in a parse error. For checking if constants are set use the defined() function."

It's a little strange that this particular line of code is causing it. The line (in a Dwoo file) is:

{if isset($attachments)}

I guess Dwoo must be parsing that template in such a way that $attachments is replaced by an expression rather than a variable. Hm, actually I think that things starting with "$" in Dwoo are not strictly PHP variables, but are placeholders for Dwoo assignments, so it probably is not a surprise that compiles into an expression instead of a variable.