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
 | ||||
| 				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 { | ||||
|  |  | |||
		Loading…
	
		Reference in New Issue