I was trying to add a condition to the display of an ad:
I got this error:
PHP Warning: Invalid argument supplied for foreach() in ..../includes/functions.php on line 3823
The following error occurred when attempting to evaluate this template:
%1$s
This is likely caused by a malformed conditional statement. It is highly recommended that you fix this error before continuing, but you may continue as-is if you wish.
What did I do wrong
Thanks!
Code:
<vb:literal> <if condition="is_member_of($bbuserinfo, 1, 3, 4, 8, 31, 32)"> <div align="right"><script async src="//pagead2.googlesyndication.com/pagead/js/adsbygoogle.js"></script> <!-- Team Buick, 300x250 --> <ins class="adsbygoogle" style="display:inline-block;width:300px;height:250px" data-ad-client="ca-pub-5874277334279308" data-ad-slot="7439119065"></ins> <script> (adsbygoogle = window.adsbygoogle || []).push({}); </script> </div> </if> </vb:literal>
PHP Warning: Invalid argument supplied for foreach() in ..../includes/functions.php on line 3823
The following error occurred when attempting to evaluate this template:
%1$s
This is likely caused by a malformed conditional statement. It is highly recommended that you fix this error before continuing, but you may continue as-is if you wish.
What did I do wrong
Thanks!
Comment