From 8eb2d3c0ecb6bf0c6eed260446a0e73112d9826d Mon Sep 17 00:00:00 2001 From: Ian Baker Date: Wed, 17 Aug 2011 21:38:18 +0000 Subject: [PATCH] listFiles() returns false when empty. Special:UplaodStash now deals with that correctly fixes bug 30429 --- includes/specials/SpecialUploadStash.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/includes/specials/SpecialUploadStash.php b/includes/specials/SpecialUploadStash.php index 20a37f0b3b..3be2e816bd 100644 --- a/includes/specials/SpecialUploadStash.php +++ b/includes/specials/SpecialUploadStash.php @@ -340,7 +340,7 @@ class SpecialUploadStash extends UnlistedSpecialPage { array( 'href' => $this->getTitle()->getLocalURL() ), wfMsg( 'uploadstash-refresh' ) ); $files = $this->stash->listFiles(); - if ( count( $files ) ) { + if ( $files && count( $files ) ) { sort( $files ); $fileListItemsHtml = ''; foreach ( $files as $file ) { -- 2.20.1