Hi,
In my template I have this code:
{page_image}{path}_page_resize/{filename}.{extension}{/page_image}This works fine when an image has been specified in the entry.
However if the user has not uploaded/specified an image, then I get this PHP error:
A PHP Error was encountered
Severity: Warning
Message: array_merge(): Argument #1 is not an array
Filename: libraries/Functions.php
Line Number: 2587Is there something I can do like:
{if {page_image} != ''}
{page_image}{path}_page_resize/{filename}.{extension}{/page_image}
{/if}?
If I try the above approach I get a PHP eval error:
Parse error: syntax error, unexpected T_CONSTANT_ENCAPSED_STRING in /home/dadadada/system/expressionengine/libraries/Functions.php(659) : eval()'d code on line 13