Categories > TinyButStrong general >

MergeBlock [archiv]: Unsupported variable type : 'NULL'.

The forum is closed. Please use Stack Overflow for submitting new questions. Use tags: tinybutstrong , opentbs
By: herr.rilke
Date: 2006-03-09
Time: 20:06

MergeBlock [archiv]: Unsupported variable type : 'NULL'.

hi everybody,

im trying to merge

<div class="submenu"> 
<a href="[var._SERVER.PHP_SELF]?c=[category.cat_id;block=a;magnet=a;]">[category.title]</a>
</div>

by using

$TBS->MergeBlock('archive',$arrArchive);

in case $arrArchive is NULL i get:
MergeBlock [archiv]): Unsupported variable type : 'NULL'.

and i'm not able to just drop the line in the template so it is just empty.

do i always need to check my output for NULL and set
$TBS->MergeBlock('category','clear');

which seems very inconvenient.

can anyone help?

thanks.
By: herr.rilke
Date: 2006-03-09
Time: 20:29

Re: MergeBlock [archiv]: Unsupported variable type : 'NULL'.

oops, yes it's just a typo:

$TBS->MergeBlock('archive',$arrArchive);

must be

$TBS->MergeBlock('category',$arrCategory);

i know - but doesn't solve the problem

h.r.
By: Skrol29
Date: 2006-03-10
Time: 02:54

Re: MergeBlock [archiv]: Unsupported variable type : 'NULL'.

Hello,

You just have to add before MergeBlock:
if (is_null($arrArchive)) $arrArchive = array();