From: Gabriel Wicke Date: Mon, 19 Apr 2004 22:43:07 +0000 (+0000) Subject: warning fix X-Git-Tag: 1.3.0beta1~371 X-Git-Url: http://git.cyclocoop.org/%22.%24redirect_annul.%22?a=commitdiff_plain;h=bc22d1c7ed7aec2eebf7c0dba0a0454c0c46b4d8;p=lhc%2Fweb%2Fwiklou.git warning fix --- diff --git a/includes/SpecialWhatlinkshere.php b/includes/SpecialWhatlinkshere.php index 174467669f..083ff2a1f6 100644 --- a/includes/SpecialWhatlinkshere.php +++ b/includes/SpecialWhatlinkshere.php @@ -5,12 +5,11 @@ function wfSpecialWhatlinkshere($par = NULL) global $wgUser, $wgOut, $target; $fname = "wfSpecialWhatlinkshere"; - if($par) { + if(!empty($par)) { $target = $par; - } else { + } else if (!empty($_REQUEST['target'])) { $target = $_REQUEST['target'] ; - } - if ( "" == $target ) { + } else { $wgOut->errorpage( "notargettitle", "notargettext" ); return; }