1
0
mirror of https://github.com/e107inc/e107.git synced 2025-08-07 07:06:30 +02:00

PHP Notice fix.

This commit is contained in:
Cameron
2020-02-10 15:38:04 -08:00
parent 20b43d47e9
commit 3a4b89f803

View File

@@ -7449,7 +7449,7 @@ class e_admin_form_ui extends e_form
unset($parms['__options']); //remove element options if any unset($parms['__options']); //remove element options if any
$options = $parms ? $parms : array(); $options = $parms ? $parms : array();
if(empty($options)) continue; if(empty($options)) continue 2;
if($type === 'batch') if($type === 'batch')
@@ -7540,7 +7540,7 @@ class e_admin_form_ui extends e_form
if(vartrue($opts['multiple']) && $type === 'batch') if(vartrue($opts['multiple']) && $type === 'batch')
{ {
// no batch support for multiple, should have some for filters soon // no batch support for multiple, should have some for filters soon
continue; continue 2;
} }
unset($parms['__options']); //remove element options if any unset($parms['__options']); //remove element options if any
@@ -7560,7 +7560,7 @@ class e_admin_form_ui extends e_form
if(vartrue($opts['multiple'])) if(vartrue($opts['multiple']))
{ {
// no batch support for multiple, should have some for filters soon // no batch support for multiple, should have some for filters soon
continue; continue 2;
} }
$options = ($val['type'] === 'language') ? e107::getLanguage()->getList() : e107::getLanguage()->getLanSelectArray(); $options = ($val['type'] === 'language') ? e107::getLanguage()->getList() : e107::getLanguage()->getLanSelectArray();
foreach($options as $code => $name) foreach($options as $code => $name)
@@ -7647,7 +7647,7 @@ class e_admin_form_ui extends e_form
if(isset($list['singleOption'])) if(isset($list['singleOption']))
{ {
$textsingle .= $list['singleOption']; $textsingle .= $list['singleOption'];
continue; continue 2;
} }
// non rendered options array // non rendered options array
foreach($list as $k => $name) foreach($list as $k => $name)
@@ -7658,7 +7658,7 @@ class e_admin_form_ui extends e_form
elseif(!empty($list)) //optgroup, continue elseif(!empty($list)) //optgroup, continue
{ {
$text .= $list; $text .= $list;
continue; continue 2;
} }
break; break;