By: iwan
Date: 2005-01-24
Time: 15:18
|
Empty <option></option>
Dear TBS Support,
I have error when my <option> block is empty
and return error message..
TinyButStrong Error (MergeBlock [lstgrp]): Unsupported variable type : 'NULL'.
how do I handle this empty array?
Thanks,
|
By: Skrol29
Date: 2005-01-24
Time: 15:30
|
Re: Empty <option></option>
Hello Iwan,
If your PHP code is something like:
$data = null;
$TBS->MergeBlock('lstgrp',$data);
|
then it produces the error you've got, because null is not considered as a valid data source. An empty data source should be array().
Just add the following line before the MergeBlock:
if (is_null($data)) $data = array();
|
|
By: iwan
Date: 2005-01-24
Time: 15:52
|
Re: Empty <option></option>
Thanks a lot
|
|
Posting in progress.
Please wait...
|