From: Bryan Tong Minh Date: Sat, 10 Jul 2010 10:47:52 +0000 (+0000) Subject: Follow-up r69231: servedby is a boolean so will always be non-null. X-Git-Tag: 1.31.0-rc.0~36176 X-Git-Url: http://git.cyclocoop.org/%24image?a=commitdiff_plain;h=8fc06f17255082f2d20384eaed1fb5360c22623b;p=lhc%2Fweb%2Fwiklou.git Follow-up r69231: servedby is a boolean so will always be non-null. --- diff --git a/includes/api/ApiMain.php b/includes/api/ApiMain.php index bf6bc891ca..9f161e7c1b 100644 --- a/includes/api/ApiMain.php +++ b/includes/api/ApiMain.php @@ -402,7 +402,7 @@ class ApiMain extends ApiBase { $this->getResult()->addValue( null, 'requestid', $requestid ); } $servedby = $this->getParameter( 'servedby' ); - if( !is_null( $servedby ) ) { + if( $servedby ) { $this->getResult()->addValue( null, 'servedby', wfHostName() ); }