Page MenuHomePhabricator

When viewing list=recentchanges&rcprop=loginfo for an unblock entry, get undefined index
Closed, ResolvedPublic

Description

api.php?action=query&list=recentchanges&rcprop=loginfo

Notice: Undefined offset: 1 in /home/reedy/mediawiki/trunk/phase3/includes/api/ApiQueryLogEvents.php on line 239

unblock:
array

0 => string '' (length=0)

array

0 => string 'infinite' (length=8)
1 => string 'anononly,nocreate' (length=17)

It's bitching on

list( $vals2['duration'], $vals2['flags'] ) = $params;

As there is only one thing in the array

Before that it's

			ApiQueryLogEvents::addLogParams(
				$this->getResult(),
				$vals, $row->rc_params,
				$row->rc_log_type, $row->rc_timestamp
			);

Version: 1.20.x
Severity: trivial

Details

Reference
bz29063

Event Timeline

bzimport raised the priority of this task from to Needs Triage.Nov 21 2014, 11:37 PM
bzimport set Reference to bz29063.