From e39db2e25c264f01779fafe9e05727fc5ce4d9da Mon Sep 17 00:00:00 2001 From: Andrew Garrett Date: Mon, 10 Aug 2009 11:04:30 +0000 Subject: [PATCH] Fix silly bug in r54703 r53546 --- includes/media/GIF.php | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) 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; -- 2.20.1