Index: trunk/extensions/Wikidata/App.php |
— | — | @@ -184,7 +184,7 @@ |
185 | 185 | } |
186 | 186 | |
187 | 187 | // Add context dataset (old hooks 'GetEditLinkTrail' and 'GetHistoryLinkTrail') |
188 | | - if (!$editChanged) { |
| 188 | + if (!$editChanged && $content_actions['edit'] != null) { |
189 | 189 | addWikidataEditLinkTrail($linkTrail); |
190 | 190 | $content_actions['edit']['href'] = ($content_actions['edit']['href'] . $linkTrail); |
191 | 191 | } |