ApiParse: Don't display revid="" when there is no revid.
authorRoan Kattouw <catrope@users.mediawiki.org>
Thu, 3 Jul 2008 15:01:50 +0000 (15:01 +0000)
committerRoan Kattouw <catrope@users.mediawiki.org>
Thu, 3 Jul 2008 15:01:50 +0000 (15:01 +0000)
includes/api/ApiParse.php

index fe195c4..71cf0f9 100644 (file)
@@ -116,7 +116,7 @@ class ApiParse extends ApiBase {
                        $result_array['externallinks'] = array_keys($p_result->getExternalLinks());
                if(isset($prop['sections']))
                        $result_array['sections'] = $p_result->getSections();
-               if($oldid !== false)
+               if(!is_null($oldid))
                        $result_array['revid'] = $oldid;
 
                $result_mapping = array(