Index: trunk/extensions/SemanticForms/includes/SF_FormPrinter.php |
— | — | @@ -119,9 +119,17 @@ |
120 | 120 | |
121 | 121 | public function getDefaultInputType( $isList, $propertyType ) { |
122 | 122 | if ( $isList ) { |
123 | | - return $this->mDefaultInputForPropTypeList[$propertyType]; |
| 123 | + if ( array_key_exists( $propertyType, $this->mDefaultInputForPropTypeList ) ) { |
| 124 | + return $this->mDefaultInputForPropTypeList[$propertyType]; |
| 125 | + } else { |
| 126 | + return null; |
| 127 | + } |
124 | 128 | } else { |
125 | | - return $this->mDefaultInputForPropType[$propertyType]; |
| 129 | + if ( array_key_exists( $propertyType, $this->mDefaultInputForPropType ) ) { |
| 130 | + return $this->mDefaultInputForPropType[$propertyType]; |
| 131 | + } else { |
| 132 | + return null; |
| 133 | + } |
126 | 134 | } |
127 | 135 | } |
128 | 136 | |