From bc22d1c7ed7aec2eebf7c0dba0a0454c0c46b4d8 Mon Sep 17 00:00:00 2001 From: Gabriel Wicke Date: Mon, 19 Apr 2004 22:43:07 +0000 Subject: [PATCH] warning fix --- includes/SpecialWhatlinkshere.php | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) 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; } -- 2.20.1