diff --git a/forms/TypeDropdown.php b/forms/TypeDropdown.php index b61ef2103..630938576 100755 --- a/forms/TypeDropdown.php +++ b/forms/TypeDropdown.php @@ -18,10 +18,11 @@ class TypeDropdown extends DropdownField { $optionArray = array( '0' => _t('TypeDropdown.NONE', 'None') ); - foreach( $options as $option ) + if($options) foreach($options as $option) { $optionArray[$option->ID] = $option->Title; + } parent::__construct( $name, $title, $optionArray, $value, $form ); } } -?> \ No newline at end of file +?>