Index: trunk/phase3/includes/specials/SpecialUploadStash.php |
— | — | @@ -340,7 +340,7 @@ |
341 | 341 | array( 'href' => $this->getTitle()->getLocalURL() ), |
342 | 342 | wfMsg( 'uploadstash-refresh' ) ); |
343 | 343 | $files = $this->stash->listFiles(); |
344 | | - if ( count( $files ) ) { |
| 344 | + if ( $files && count( $files ) ) { |
345 | 345 | sort( $files ); |
346 | 346 | $fileListItemsHtml = ''; |
347 | 347 | foreach ( $files as $file ) { |