New eval message !

Hi,
So from this great feature I could try to grant my poor knowledge, because FB take care of the Eval right now and return me some precise information from my Eval Code.....

Code:
Eval exception : for_team::getDefaultValue() : 21 : syntax error, unexpected $end

Is a return from a calc element into which I've got this Eval :

PHP:
$groups = JAccess::getGroupsByUser({$my->id}, false);
return $groups['1'];

Notice even if I've get the expect data, just looking for knowing why this message and if I could make something in this way of notice. Just note this Eval code seems to work like it does since J2.5 & FB 3.0X ...

But for sure this feature (Return an Eval's notice,error) is a really a great idea for me and my poor knowledge ;)
Notice is precise and fast for give me the way to do good code for Eval !
 
Glad you like it!! One of mine.

In case you can't work out what the error is, I think it should say:

Code:
$groups = JAccess::getGroupsByUser("{$my->id}", false);
return $groups['1'];
i.e. you generally need to put " around the placeholder.
 
We are in need of some funding.
More details.

Thank you.

Members online

No members online now.
Back
Top