From: Alexandre Emsenhuber Date: Sat, 19 Apr 2008 18:45:42 +0000 (+0000) Subject: Don't throw a fatal error if somebody access Special:Whatlinkshere without target... X-Git-Tag: 1.31.0-rc.0~48177 X-Git-Url: https://git.cyclocoop.org/admin/%7B%7Blocalurl:Special:UserLogin%7D%7D?a=commitdiff_plain;h=0acb976760ec3274f8ddd640ac4a094f458671d0;p=lhc%2Fweb%2Fwiklou.git Don't throw a fatal error if somebody access Special:Whatlinkshere without target page --- 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