From: Roan Kattouw Date: Thu, 3 Jul 2008 15:01:50 +0000 (+0000) Subject: ApiParse: Don't display revid="" when there is no revid. X-Git-Tag: 1.31.0-rc.0~46778 X-Git-Url: http://git.cyclocoop.org/%24image?a=commitdiff_plain;h=18a33b842b442c89dd63331bf375d750e6216d14;p=lhc%2Fweb%2Fwiklou.git ApiParse: Don't display revid="" when there is no revid. --- 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(