From: Derk-Jan Hartman Date: Sun, 20 Jun 2010 16:17:19 +0000 (+0000) Subject: Follow up to r68324. Fix undefined constant. X-Git-Tag: 1.31.0-rc.0~36443 X-Git-Url: https://git.cyclocoop.org/%7B%24admin_url%7Dmembres/fiche.php?a=commitdiff_plain;h=8c3a2ad127aa611b6167da0cc64c403a0d2032d0;p=lhc%2Fweb%2Fwiklou.git Follow up to r68324. Fix undefined constant. --- 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();