From: Siebrand Mazeland Date: Thu, 5 Dec 2013 19:36:51 +0000 (+0100) Subject: Remove function call from for loop test part in GIFMetadataExtractor::readGCT() X-Git-Tag: 1.31.0-rc.0~17750 X-Git-Url: http://git.cyclocoop.org/data/Fool?a=commitdiff_plain;h=32f9dcb2c0dd4a796aba0d5038f922b05ea95714;p=lhc%2Fweb%2Fwiklou.git Remove function call from for loop test part in GIFMetadataExtractor::readGCT() Change-Id: Ia19ddc32212786d7050287c6e07748ea2213ed40 --- diff --git a/includes/media/GIFMetadataExtractor.php b/includes/media/GIFMetadataExtractor.php index f8f744b62c..59fe15c115 100644 --- a/includes/media/GIFMetadataExtractor.php +++ b/includes/media/GIFMetadataExtractor.php @@ -267,7 +267,8 @@ class GIFMetadataExtractor { */ static function readGCT( $fh, $bpp ) { if ( $bpp > 0 ) { - for ( $i = 1; $i <= pow( 2, $bpp ); ++$i ) { + $max = pow( 2, $bpp ); + for ( $i = 1; $i <= $max; ++$i ) { fread( $fh, 3 ); } }