Index: trunk/extensions/SemanticResultFormats/Calendar/SRF_Calendar.php |
— | — | @@ -111,7 +111,7 @@ |
112 | 112 | // handling is different for SMW 1.5+ |
113 | 113 | if ( method_exists( 'SMWQueryResult', 'getResults' ) ) { |
114 | 114 | $res_subject = $field->getResultSubject(); |
115 | | - if ( is_array( $res_subject->display_options ) && array_key_exists( 'color', $res_subject->display_options ) ) |
| 115 | + if ( isset( $res_subject->display_options ) && is_array( $res_subject->display_options ) && array_key_exists( 'color', $res_subject->display_options ) ) |
116 | 116 | $color = $res_subject->display_options['color']; |
117 | 117 | } elseif ( property_exists( $row[0], 'display_options' ) ) { |
118 | 118 | if ( is_array( $row[0]->display_options ) && array_key_exists( 'color', $row[0]->display_options ) ) |