r50600 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r50599‎ | r50600 | r50601 >
Date:20:29, 14 May 2009
Author:demon
Status:ok (Comments)
Tags:
Comment:
Followup to r50423: Check if the row is null, since older revs don't necessarily have rev_len populated.
Modified paths:
  • /trunk/phase3/includes/api/ApiQueryUserContributions.php (modified) (history)

Diff [purge]

Index: trunk/phase3/includes/api/ApiQueryUserContributions.php
@@ -289,7 +289,7 @@
290290 if ($this->fld_patrolled && $row->rc_patrolled)
291291 $vals['patrolled'] = '';
292292
293 - if ($this->fld_size )
 293+ if ( $this->fld_size && !is_null( $this->fld_size ) )
294294 $vals['size'] = intval($row->rev_len);
295295
296296 return $vals;

Follow-up revisions

RevisionCommit summaryAuthorDate
r50623Fix up r50600, which had no effectcatrope10:42, 15 May 2009

Past revisions this follows-up on

RevisionCommit summaryAuthorDate
r50423API: (bug 18743) Add ucprop=size (enabled by default) to list=usercontribs. A...catrope09:25, 10 May 2009

Comments

#Comment by Catrope (talk | contribs)   09:55, 15 May 2009

!is_null($this->fld_size) should be !is_null($row->rev_len)

Status & tagging log