r94821 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r94820‎ | r94821 | r94822 >
Date:21:38, 17 August 2011
Author:raindrift
Status:ok
Tags:
Comment:
listFiles() returns false when empty. Special:UplaodStash now deals with that correctly
fixes bug 30429
Modified paths:
  • /trunk/phase3/includes/specials/SpecialUploadStash.php (modified) (history)

Diff [purge]

Index: trunk/phase3/includes/specials/SpecialUploadStash.php
@@ -340,7 +340,7 @@
341341 array( 'href' => $this->getTitle()->getLocalURL() ),
342342 wfMsg( 'uploadstash-refresh' ) );
343343 $files = $this->stash->listFiles();
344 - if ( count( $files ) ) {
 344+ if ( $files && count( $files ) ) {
345345 sort( $files );
346346 $fileListItemsHtml = '';
347347 foreach ( $files as $file ) {

Status & tagging log