pdoTools + Очистка Корзины miniShop2 - warning. Просьба помочь

Доброе время суток уважаемое сообщество MODX!

При очистке Корзины miniShop2 — в журнале ошибок предупреждение:
\core\components\pdotools\model\pdotools\pdotools.class.php(552): eval()'d code: 7) PHP warning: count(): Parameter must be an array or an object that implements Countable
/Предупреждение PHP: count (): Параметр должен быть массивом или объектом, который реализует счет/

Корзина очищается.
Это всего лишь Предупреждение. Но хотелось бы от него избавиться.
Что не так с кэшем?

Блок кода pdotools.class.php<cut
/** @var Fenom\Template $tpl */
            if (!$tpl = $this->getStore($name, 'fenom')) {
                if (!empty($this->config['useFenomCache'])) {
                    $cache_options = array(
                        'cache_key' => 'pdotools/' . $name,
                    );
                    if (!$cache = $this->getCache($cache_options)) {
                        if ($tpl = $this->_compileChunk($content, $name)) {
                            $this->setCache($tpl->getTemplateCode(), $cache_options);
                        }
                    } else {
                        $cache = preg_replace('#^<\?php#', '', $cache);
                        $tpl = eval($cache);
                    }
                } else {
                    $tpl = $this->_compileChunk($content, $name);
                }
                if ($tpl) {
                    $this->setStore($name, $tpl, 'fenom');
                }
            }
/>

Строка 552:
$tpl = eval($cache);
Спасибо
Iskatel
27 октября 2018, 15:06
modx.pro
1 137
0

Комментарии: 0

Авторизуйтесь или зарегистрируйтесь, чтобы оставлять комментарии.
0