From 0acb976760ec3274f8ddd640ac4a094f458671d0 Mon Sep 17 00:00:00 2001 From: Alexandre Emsenhuber Date: Sat, 19 Apr 2008 18:45:42 +0000 Subject: [PATCH] Don't throw a fatal error if somebody access Special:Whatlinkshere without target page --- includes/SpecialWhatlinkshere.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/includes/SpecialWhatlinkshere.php b/includes/SpecialWhatlinkshere.php index 0fd7c8f707..f1962f0777 100644 --- a/includes/SpecialWhatlinkshere.php +++ b/includes/SpecialWhatlinkshere.php @@ -320,7 +320,7 @@ class WhatLinksHerePage { // Reset these for new requests $this->opts->consumeValues( array( 'back', 'from' ) ); - $target = $this->target->getPrefixedText(); + $target = $this->target ? $this->target->getPrefixedText() : ''; $namespace = $this->opts->consumeValue( 'namespace' ); # Build up the form -- 2.20.1