From 8fc06f17255082f2d20384eaed1fb5360c22623b Mon Sep 17 00:00:00 2001 From: Bryan Tong Minh Date: Sat, 10 Jul 2010 10:47:52 +0000 Subject: [PATCH] Follow-up r69231: servedby is a boolean so will always be non-null. --- includes/api/ApiMain.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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() ); } -- 2.20.1