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