From: Chad Horohoe Date: Thu, 14 May 2009 20:29:54 +0000 (+0000) Subject: Followup to r50423: Check if the row is null, since older revs don't necessarily... X-Git-Tag: 1.31.0-rc.0~41804 X-Git-Url: http://git.cyclocoop.org/%7B%24www_url%7Dadmin/compta/pie.php?a=commitdiff_plain;h=80f670d1cb34218d623669029ca349f3da32f414;p=lhc%2Fweb%2Fwiklou.git Followup to r50423: Check if the row is null, since older revs don't necessarily have rev_len populated. --- 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;