r70490 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r70489‎ | r70490 | r70491 >
Date:06:58, 5 August 2010
Author:reedy
Status:ok
Tags:
Comment:
Revert r70489
Modified paths:
  • /trunk/phase3/includes/api/ApiBase.php (modified) (history)

Diff [purge]

Index: trunk/phase3/includes/api/ApiBase.php
@@ -736,8 +736,10 @@
737737 default:
738738 ApiBase::dieDebug( __METHOD__, "Param $encParamName's type is unknown - $type" );
739739 }
740 - } else if ( !$dupes ) {
741 - // Throw out duplicates if requested
 740+ }
 741+
 742+ // Throw out duplicates if requested
 743+ if ( is_array( $value ) && !$dupes ) {
742744 $value = array_unique( $value );
743745 }
744746

Past revisions this follows-up on

RevisionCommit summaryAuthorDate
r70489Move if ( is_array( $value ) && !$dupes ) { up to else block after the first ...reedy06:08, 5 August 2010

Status & tagging log