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;
case 'selected':
$configs = array();
$config = '';
$newvals = explode(' ',$newval);
$setting = end($newvals);
for($i=0;$i<(count($newvals) - 1); $i++)
{
$configs[] = $newvals[$i];
}
$config = implode('_',$configs);
$setting = array_pop($newvals);
$config = implode('_',$newvals);
/* echo $config . '=' . $current_config[$config]; */
if(@$current_config[$config] == $setting)
{