From 5bbd342570e22abd70fbb179a53c32472b4343ba Mon Sep 17 00:00:00 2001 From: Ryan Cramer Date: Mon, 4 Dec 2017 10:57:04 -0500 Subject: [PATCH] Fix issue processwire/processwire-issues#433 --- wire/core/ImageInspector.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/wire/core/ImageInspector.php b/wire/core/ImageInspector.php index 9c38a1b7..9154b437 100644 --- a/wire/core/ImageInspector.php +++ b/wire/core/ImageInspector.php @@ -232,7 +232,7 @@ class ImageInspector extends WireData { $i['trans'] = isset($gi->m_bTrans) ? $gi->m_bTrans : false; $i['transcolor'] = isset($gi->m_nTrans) ? $gi->m_nTrans : ''; $i['bgcolor'] = $gfh->m_nBgColor; - $i['numcolors'] = $gfh->m_colorTable->m_nColors; + $i['numcolors'] = isset($gfh->m_colorTable->m_nColors) ? $gfh->m_colorTable->m_nColors : 0; $i['interlace'] = $gih->m_bInterlace; $this->info = $i; unset($gif, $gih, $gfh, $gi, $i);