From: Derk-Jan Hartman Date: Sun, 20 Jun 2010 16:15:20 +0000 (+0000) Subject: Follow up r68324. X-Git-Tag: 1.31.0-rc.0~36444 X-Git-Url: https://git.cyclocoop.org/%242?a=commitdiff_plain;h=3d92e9a26e49eec74ff61378c831e223dc8367ce;p=lhc%2Fweb%2Fwiklou.git Follow up r68324. Init PNG info array before we use it. Much cleaner. --- diff --git a/includes/media/PNG.php b/includes/media/PNG.php index babaddea19..927f173fa7 100644 --- a/includes/media/PNG.php +++ b/includes/media/PNG.php @@ -61,6 +61,7 @@ class PNGHandler extends BitmapHandler { if( !metadata || $metadata['frameCount'] == 0 ) return $original; + $info = array(); $info[] = substr( $original, 1, strlen( $original )-2 ); if ($metadata['loopCount'] == 0)