Don't cast to array, it's often scalar

This commit is contained in:
Nathan Gray 2011-03-28 21:51:35 +00:00
parent 96a6514c49
commit ce38993281

View File

@ -171,7 +171,7 @@ class importexport_export_ui {
} else {
$options = $plugin_object->get_selectors_etpl();
if(is_array($options)) {
$content['selection'] = (array)$options['content'];
$content['selection'] = $options['content'];
$sel_options += (array)$options['sel_options'];
$readonlys['selection'] = (array)$options['readonlys'];
$preserv['selection'] = (array)$options['preserv'];