From 8c3a2ad127aa611b6167da0cc64c403a0d2032d0 Mon Sep 17 00:00:00 2001 From: Derk-Jan Hartman Date: Sun, 20 Jun 2010 16:17:19 +0000 Subject: [PATCH] Follow up to r68324. Fix undefined constant. --- includes/media/PNG.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/includes/media/PNG.php b/includes/media/PNG.php index 927f173fa7..57f4dc0ab5 100644 --- a/includes/media/PNG.php +++ b/includes/media/PNG.php @@ -58,7 +58,7 @@ class PNGHandler extends BitmapHandler { $metadata = unserialize($image->getMetadata()); wfRestoreWarnings(); - if( !metadata || $metadata['frameCount'] == 0 ) + if( !$metadata || $metadata['frameCount'] <= 0 ) return $original; $info = array(); -- 2.20.1