Follow-up r69231: servedby is a boolean so will always be non-null.
authorBryan Tong Minh <btongminh@users.mediawiki.org>
Sat, 10 Jul 2010 10:47:52 +0000 (10:47 +0000)
committerBryan Tong Minh <btongminh@users.mediawiki.org>
Sat, 10 Jul 2010 10:47:52 +0000 (10:47 +0000)
includes/api/ApiMain.php

index bf6bc89..9f161e7 100644 (file)
@@ -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() );
                }