Make sure if options-selectcols is set by caller, we don't clear it

This commit is contained in:
Nathan Gray 2009-09-30 15:04:49 +00:00
parent f1ae1c456d
commit 978a1d9642

View File

@ -321,7 +321,7 @@ class nextmatch_widget
if (!$value['no_columnselection']) if (!$value['no_columnselection'])
{ {
// presetting the options for selectcols empty, so the get_rows function can set it // presetting the options for selectcols empty, so the get_rows function can set it
$value['options-selectcols'] = array(); $value['options-selectcols'] = is_array($value['options-selectcols']) ? $value['options-selectcols'] : array();
} }
$rows = array(); $rows = array();
if(is_callable($method)) // php5.3+ call if(is_callable($method)) // php5.3+ call