fix error messages if options_selected is not set

This commit is contained in:
Roland Gruber 2004-04-12 11:05:52 +00:00
parent 2cf5aeea93
commit 6979caa825
1 changed files with 1 additions and 1 deletions

View File

@ -173,7 +173,7 @@ function print_option($values, $modulename, $old_options) {
}
// use default values if not in profile
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";
}
else {