fix IDE warnings

This commit is contained in:
Ralf Becker 2014-07-04 18:45:22 +00:00
parent 7cc924c74e
commit 6a3ed78a28

View File

@ -172,15 +172,9 @@ foreach($vars as $value)
} }
break; break;
case 'selected': case 'selected':
$configs = array();
$config = '';
$newvals = explode(' ',$newval); $newvals = explode(' ',$newval);
$setting = end($newvals); $setting = array_pop($newvals);
for($i=0;$i<(count($newvals) - 1); $i++) $config = implode('_',$newvals);
{
$configs[] = $newvals[$i];
}
$config = implode('_',$configs);
/* echo $config . '=' . $current_config[$config]; */ /* echo $config . '=' . $current_config[$config]; */
if(@$current_config[$config] == $setting) if(@$current_config[$config] == $setting)
{ {