X-Git-Url: https://git.heureux-cyclage.org/?a=blobdiff_plain;f=includes%2Fmedia%2FBMP.php;h=99b7741a5933eb36421eaffc1c209a4612e529eb;hb=5e5579d04cfac26317ff13cd85ed8453a113c10f;hp=46d1b95bf55ac8e5d6257c5334937e7bd2337c0e;hpb=cc54bc97076aebc839c657d8caf021c19ea2bb8f;p=lhc%2Fweb%2Fwiklou.git diff --git a/includes/media/BMP.php b/includes/media/BMP.php index 46d1b95bf5..99b7741a59 100644 --- a/includes/media/BMP.php +++ b/includes/media/BMP.php @@ -58,15 +58,15 @@ class BmpHandler extends BitmapHandler { */ function getImageSize( $image, $filename ) { $f = fopen( $filename, 'rb' ); - if( !$f ) { + if ( !$f ) { return false; } $header = fread( $f, 54 ); fclose( $f ); // Extract binary form of width and height from the header - $w = substr( $header, 18, 4); - $h = substr( $header, 22, 4); + $w = substr( $header, 18, 4 ); + $h = substr( $header, 22, 4 ); // Convert the unsigned long 32 bits (little endian): try {