Page MenuHomePhabricator

Undefined variable: index in ApiQueryUserContributions::prepareQuery
Closed, ResolvedPublic

Description

Notice: 20 Undefined variable: index in /srv/mediawiki/php-1.28.0-wmf.12/includes/api/ApiQueryUserContributions.php on line 340

Event Timeline

Restricted Application added a subscriber: Aklapper. · View Herald TranscriptJul 27 2016, 11:31 PM

This error occurs when three conditions are cumulated:

  • $show['patrolled'] is falsy
  • $show['!patrolled'] is falsy
  • $this->fld_patrolled is falsy

Change 301525 had a related patch set uploaded (by Dereckson):
Fix Undefined variable issue in ApiQueryUserContributions

https://gerrit.wikimedia.org/r/301525

Change 301525 merged by jenkins-bot:
Fix Undefined variable issue in ApiQueryUserContributions

https://gerrit.wikimedia.org/r/301525

Anomie closed this task as Resolved.Jul 28 2016, 1:39 PM
Anomie assigned this task to Dereckson.

Change 301666 had a related patch set uploaded (by Dereckson):
Fix Undefined variable issue in ApiQueryUserContributions

https://gerrit.wikimedia.org/r/301666

Change 301666 merged by jenkins-bot:
Fix Undefined variable issue in ApiQueryUserContributions

https://gerrit.wikimedia.org/r/301666