fix error messages if options_selected is not set
This commit is contained in:
parent
2cf5aeea93
commit
6979caa825
|
@ -173,7 +173,7 @@ function print_option($values, $modulename, $old_options) {
|
||||||
}
|
}
|
||||||
// use default values if not in profile
|
// use default values if not in profile
|
||||||
else {
|
else {
|
||||||
if (in_array($values['options'][$i], $values['options_selected'])) {
|
if (is_array($values['options_selected']) && in_array($values['options'][$i], $values['options_selected'])) {
|
||||||
echo "<option selected>" . $values['options'][$i] . "</option>\n";
|
echo "<option selected>" . $values['options'][$i] . "</option>\n";
|
||||||
}
|
}
|
||||||
else {
|
else {
|
||||||
|
|
Loading…
Reference in New Issue