From: Niklas Laxström Date: Sat, 10 Jul 2010 07:36:09 +0000 (+0000) Subject: Tweak comparison in r69171 X-Git-Tag: 1.31.0-rc.0~36184 X-Git-Url: http://git.cyclocoop.org/fichier?a=commitdiff_plain;h=dcd4df4e44ac85dae6107f00886206ef63e777dd;p=lhc%2Fweb%2Fwiklou.git Tweak comparison in r69171 --- diff --git a/includes/LinkBatch.php b/includes/LinkBatch.php index 75ec2dfdc9..d493431eda 100644 --- a/includes/LinkBatch.php +++ b/includes/LinkBatch.php @@ -148,7 +148,10 @@ class LinkBatch { $sql = "SELECT page_id, page_namespace, page_title, page_len, page_is_redirect, page_latest FROM $page WHERE $set"; // Do query - $caller = $this->caller ? __METHOD__ . " (for {$this->caller})" : __METHOD__; + $caller = __METHOD__; + if ( strval( $this->caller ) !== '' ) { + $caller .= " (for {$this->caller})"; + } $res = $dbr->query( $sql, $caller ); wfProfileOut( __METHOD__ ); return $res;