Fix up r50600, which had no effect
authorRoan Kattouw <catrope@users.mediawiki.org>
Fri, 15 May 2009 10:42:25 +0000 (10:42 +0000)
committerRoan Kattouw <catrope@users.mediawiki.org>
Fri, 15 May 2009 10:42:25 +0000 (10:42 +0000)
includes/api/ApiQueryUserContributions.php

index 5d4a060..469a1b3 100644 (file)
@@ -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
+}