From d42a03ca57b71c8af5e8f512820363e78094d21c Mon Sep 17 00:00:00 2001 From: Ryan Cramer Date: Thu, 13 Oct 2016 06:08:35 -0400 Subject: [PATCH] Fix issue #40 with ImageInspector having issues with some GIF files --- wire/core/ImageInspector.php | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/wire/core/ImageInspector.php b/wire/core/ImageInspector.php index 542642ea..7f527219 100644 --- a/wire/core/ImageInspector.php +++ b/wire/core/ImageInspector.php @@ -228,9 +228,9 @@ class ImageInspector extends WireData { $i['height'] = $gfh->m_nHeight; $i['gifversion'] = $gfh->m_lpVer; $i['animated'] = $gfh->m_bAnimated; - $i['delay'] = $gi->m_nDelay; - $i['trans'] = $gi->m_bTrans; - $i['transcolor'] = $gi->m_nTrans; + $i['delay'] = isset($gi->m_nDelay) ? $gi->m_nDelay : ''; + $i['trans'] = isset($gi->m_bTrans) ? $gi->m_bTrans : ''; + $i['transcolor'] = isset($gi->m_nTrans) ? $gi->m_nTrans : ''; $i['bgcolor'] = $gfh->m_nBgColor; $i['numcolors'] = $gfh->m_colorTable->m_nColors; $i['interlace'] = $gih->m_bInterlace;