Index: trunk/phase3/includes/media/GIF.php |
— | — | @@ -24,8 +24,9 @@ |
25 | 25 | } |
26 | 26 | |
27 | 27 | function getImageArea( $image, $width, $height ) { |
28 | | - if ($metadata) { |
29 | | - $metadata = unserialize($image->getMetadata()); |
| 28 | + $ser = $image->getMetadata() |
| 29 | + if ($ser) { |
| 30 | + $metadata = unserialize($ser); |
30 | 31 | return $width * $height * $metadata['frameCount']; |
31 | 32 | } else { |
32 | 33 | return $width * $height; |