1
0
mirror of https://github.com/mrclay/minify.git synced 2025-08-12 09:05:08 +02:00
also comment why the check may be neccessary
This commit is contained in:
Elan Ruusamäe
2016-01-20 15:41:56 +02:00
parent c387014e27
commit cd49391833

View File

@@ -121,9 +121,13 @@ class Minify_HTML_Helper {
$gc = (require $this->groupsConfigFile); $gc = (require $this->groupsConfigFile);
$keys = explode(',', $key); $keys = explode(',', $key);
foreach ($keys as $key) { foreach ($keys as $key) {
if (isset($gc[$key])) { if (!isset($gc[$key])) {
$this->_lastModified = self::getLastModified($gc[$key], $this->_lastModified); // this can happen if value is null
// which could be solved with array_filter
continue;
} }
$this->_lastModified = self::getLastModified($gc[$key], $this->_lastModified);
} }
} }
} }