Followup to r50423: Check if the row is null, since older revs don't necessarily...
authorChad Horohoe <demon@users.mediawiki.org>
Thu, 14 May 2009 20:29:54 +0000 (20:29 +0000)
committerChad Horohoe <demon@users.mediawiki.org>
Thu, 14 May 2009 20:29:54 +0000 (20:29 +0000)
includes/api/ApiQueryUserContributions.php

index 76d0b45..5d4a060 100644 (file)
@@ -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;