Check for value before trying to use it

This commit is contained in:
Nathan Gray 2013-06-03 23:17:01 +00:00
parent 25c95ce870
commit b79460e7a0

View File

@ -191,7 +191,7 @@ class etemplate_widget_nextmatch extends etemplate_widget
} }
foreach($value as $name => $_value) foreach($value as $name => $_value)
{ {
if(strpos($name, 'options-') !== false) if(strpos($name, 'options-') !== false && $_value)
{ {
$select = substr($name, 8); $select = substr($name, 8);
if(!self::$request->sel_options[$select]) if(!self::$request->sel_options[$select])