Fix silly bug in r54703 r53546
authorAndrew Garrett <werdna@users.mediawiki.org>
Mon, 10 Aug 2009 11:04:30 +0000 (11:04 +0000)
committerAndrew Garrett <werdna@users.mediawiki.org>
Mon, 10 Aug 2009 11:04:30 +0000 (11:04 +0000)
includes/media/GIF.php

index fba54ae..0086812 100644 (file)
@@ -24,8 +24,9 @@ class GIFHandler extends BitmapHandler {
        }
        
        function getImageArea( $image, $width, $height ) {
-               if ($metadata) {
-                       $metadata = unserialize($image->getMetadata());
+               $ser = $image->getMetadata()
+               if ($ser) {
+                       $metadata = unserialize($ser);
                        return $width * $height * $metadata['frameCount'];
                } else {
                        return $width * $height;