From 18a33b842b442c89dd63331bf375d750e6216d14 Mon Sep 17 00:00:00 2001 From: Roan Kattouw Date: Thu, 3 Jul 2008 15:01:50 +0000 Subject: [PATCH] ApiParse: Don't display revid="" when there is no revid. --- includes/api/ApiParse.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/includes/api/ApiParse.php b/includes/api/ApiParse.php index fe195c4f6e..71cf0f9ffb 100644 --- a/includes/api/ApiParse.php +++ b/includes/api/ApiParse.php @@ -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( -- 2.20.1