From: Andrew Garrett Date: Mon, 10 Aug 2009 11:04:30 +0000 (+0000) Subject: Fix silly bug in r54703 r53546 X-Git-Tag: 1.31.0-rc.0~40390 X-Git-Url: http://git.cyclocoop.org/%22.htmlspecialchars%28%24url_syndic%29.%22?a=commitdiff_plain;h=e39db2e25c264f01779fafe9e05727fc5ce4d9da;p=lhc%2Fweb%2Fwiklou.git Fix silly bug in r54703 r53546 --- diff --git a/includes/media/GIF.php b/includes/media/GIF.php index fba54aefd2..00868120d4 100644 --- a/includes/media/GIF.php +++ b/includes/media/GIF.php @@ -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;