Index: trunk/extensions/SemanticForms/includes/SF_LinkUtils.inc |
— | — | @@ -79,8 +79,12 @@ |
80 | 80 | $property = SMWPropertyValue::makeProperty($prop_smw_id); |
81 | 81 | $res = $store->getPropertyValues($title, $property); |
82 | 82 | $form_names = array(); |
83 | | - foreach ($res as $wiki_page_value) |
84 | | - $form_names[] = $wiki_page_value->getTitle()->getText(); |
| 83 | + foreach ($res as $wiki_page_value) { |
| 84 | + $form_title = $wiki_page_value->getTitle(); |
| 85 | + if ( ! is_null( $form_title ) ) { |
| 86 | + $form_names[] = $form_title->getText(); |
| 87 | + } |
| 88 | + } |
85 | 89 | // if we're using a non-English language, check for the English string as well |
86 | 90 | if (! class_exists('SF_LanguageEn') || ! $sfgContLang instanceof SF_LanguageEn) { |
87 | 91 | $backup_property = SMWPropertyValue::makeProperty($backup_prop_smw_id); |