Avoid fatal error if it exists, but is not an array

This commit is contained in:
Nathan Gray 2012-06-26 23:00:22 +00:00
parent 4a98ec1a26
commit 69812c92ee

View File

@ -192,7 +192,7 @@ class etemplate_widget_menupopup extends etemplate_widget
} }
// Check for options-$name in content // Check for options-$name in content
if (isset(self::$request->content['options-'.$name])) if (is_array(self::$request->content['options-'.$name]))
{ {
$options += self::$request->content['options-'.$name]; $options += self::$request->content['options-'.$name];
} }