From 80f670d1cb34218d623669029ca349f3da32f414 Mon Sep 17 00:00:00 2001 From: Chad Horohoe Date: Thu, 14 May 2009 20:29:54 +0000 Subject: [PATCH] Followup to r50423: Check if the row is null, since older revs don't necessarily have rev_len populated. --- includes/api/ApiQueryUserContributions.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/includes/api/ApiQueryUserContributions.php b/includes/api/ApiQueryUserContributions.php index 76d0b4578e..5d4a060ffc 100644 --- a/includes/api/ApiQueryUserContributions.php +++ b/includes/api/ApiQueryUserContributions.php @@ -289,7 +289,7 @@ class ApiQueryContributions extends ApiQueryBase { if ($this->fld_patrolled && $row->rc_patrolled) $vals['patrolled'] = ''; - if ($this->fld_size ) + if ( $this->fld_size && !is_null( $this->fld_size ) ) $vals['size'] = intval($row->rev_len); return $vals; -- 2.20.1