From fe046405741a20f72d617cc831e99de91a46c8ad Mon Sep 17 00:00:00 2001 From: Sam Reed Date: Tue, 26 Jul 2011 16:17:19 +0000 Subject: [PATCH] * (bug 29685) do not output NULL parentid with list=deletedrevs&drprop=parentid --- RELEASE-NOTES-1.19 | 2 ++ includes/api/ApiQueryDeletedrevs.php | 2 +- 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/RELEASE-NOTES-1.19 b/RELEASE-NOTES-1.19 index 8241ecbc65..b018f420e9 100644 --- a/RELEASE-NOTES-1.19 +++ b/RELEASE-NOTES-1.19 @@ -30,6 +30,8 @@ production. * (bug 19838) siprop=interwikimap can now use the interwiki cache. * (bug 29748) Add API search prefix support * (bug 29684) Set forgotten parameter types in ApiQueryIWLinks +* (bug 29685) do not output NULL parentid with + list=deletedrevs&drprop=parentid === Languages updated in 1.19 === diff --git a/includes/api/ApiQueryDeletedrevs.php b/includes/api/ApiQueryDeletedrevs.php index 3e67dee0c9..d8108022a5 100644 --- a/includes/api/ApiQueryDeletedrevs.php +++ b/includes/api/ApiQueryDeletedrevs.php @@ -214,7 +214,7 @@ class ApiQueryDeletedrevs extends ApiQueryBase { if ( $fld_revid ) { $rev['revid'] = intval( $row->ar_rev_id ); } - if ( $fld_parentid ) { + if ( $fld_parentid && !is_null( $row->ar_parent_id ) ) { $rev['parentid'] = intval( $row->ar_parent_id ); } if ( $fld_user ) { -- 2.20.1