Hello, I'm attempting to port a mod (someone else's) to VB4 and I'm having a problem with one of the templates.
The mod has a main templates and calls the other templates using variables. I modified the main template and the php file so that the variables are now registered and the sub templates are called using the {vb:raw } syntax. The problem is in one of the sub templates I need to pass variables to it as well but as soon as I try to specify a {vb: } type variable (even stylevars) it won't let me save the template. I get the following error:
Code:
Warning: Invalid argument supplied for foreach() in [path]/includes/functions.php on line 3332
and the following dialog:
Any any ideas where the problem might be?
Thanks.
EDIT: I checked and as far as I'm aware of there are no if statements in the template.