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);