From 03c8bcb8db5eff82d6a0f584dd3ae5d4aa19417b Mon Sep 17 00:00:00 2001 From: Roan Kattouw Date: Fri, 15 May 2009 10:42:25 +0000 Subject: [PATCH] Fix up r50600, which had no effect --- includes/api/ApiQueryUserContributions.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/includes/api/ApiQueryUserContributions.php b/includes/api/ApiQueryUserContributions.php index 5d4a060ffc..469a1b3af0 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 && !is_null( $this->fld_size ) ) + if ($this->fld_size && !is_null($row->rev_len)) $vals['size'] = intval($row->rev_len); return $vals; @@ -387,4 +387,4 @@ class ApiQueryContributions extends ApiQueryBase { public function getVersion() { return __CLASS__ . ': $Id$'; } -} \ No newline at end of file +} -- 2.20.1