From: Siebrand Mazeland Date: Wed, 4 Dec 2013 16:22:01 +0000 (+0100) Subject: Satisfy code analyzer by ensuring $urls is defined X-Git-Tag: 1.31.0-rc.0~17783^2 X-Git-Url: https://git.cyclocoop.org/%7B%24www_url%7Dadmin/compta/exercices/bilan.php?a=commitdiff_plain;h=43605121f8bbae53e1b0c177a1352d33bfb20512;p=lhc%2Fweb%2Fwiklou.git Satisfy code analyzer by ensuring $urls is defined Change-Id: I0f399edfca51c8949f0d0ce02c7a84f0890db92f --- 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 ); }