From 43605121f8bbae53e1b0c177a1352d33bfb20512 Mon Sep 17 00:00:00 2001 From: Siebrand Mazeland Date: Wed, 4 Dec 2013 17:22:01 +0100 Subject: [PATCH] Satisfy code analyzer by ensuring $urls is defined Change-Id: I0f399edfca51c8949f0d0ce02c7a84f0890db92f --- includes/filerepo/file/LocalFile.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/includes/filerepo/file/LocalFile.php b/includes/filerepo/file/LocalFile.php index 1f9190be95..dd8e38aacb 100644 --- a/includes/filerepo/file/LocalFile.php +++ b/includes/filerepo/file/LocalFile.php @@ -931,8 +931,8 @@ class LocalFile extends File { // Delete thumbnails $files = $this->getThumbnails(); // Always purge all files from squid regardless of handler filters + $urls = array(); if ( $wgUseSquid ) { - $urls = array(); foreach ( $files as $file ) { $urls[] = $this->getThumbUrl( $file ); } -- 2.20.1