r106599 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r106598‎ | r106599 | r106600 >
Date:20:52, 18 December 2011
Author:jeroendedauw
Status:deferred
Tags:educationprogram 
Comment:
fix logical error
Modified paths:
  • /trunk/extensions/EducationProgram/includes/EPPager.php (modified) (history)

Diff [purge]

Index: trunk/extensions/EducationProgram/includes/EPPager.php
@@ -216,7 +216,7 @@
217217
218218 if ( $hideWhenNoResults && $this->getNumRows() < 1 ) {
219219 $noFiltersSet = array_reduce( $filterOptions, function( $current, array $data ) {
220 - return $current && $data['value'] !== '' && !is_null( $data['value'] );
 220+ return $current && ( $data['value'] === '' || is_null( $data['value'] ) );
221221 }, true );
222222
223223 if ( $noFiltersSet ) {

Status & tagging log