From 2874f1498352228c84df969c42e9d8f699a8afc5 Mon Sep 17 00:00:00 2001 From: gRoussac Date: Fri, 6 Sep 2013 23:55:58 +0200 Subject: [PATCH] [-] CORE : Fix bug #PSCFV-10040 Notice: Undefined index: unifunc && Fatal error: Function name must be a string on some PHP version with empty cache folder and smarty cache enabled --- tools/smarty/sysplugins/smarty_internal_templatebase.php | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/tools/smarty/sysplugins/smarty_internal_templatebase.php b/tools/smarty/sysplugins/smarty_internal_templatebase.php index 1cb9bb949..84315b2d6 100644 --- a/tools/smarty/sysplugins/smarty_internal_templatebase.php +++ b/tools/smarty/sysplugins/smarty_internal_templatebase.php @@ -278,7 +278,9 @@ abstract class Smarty_Internal_TemplateBase extends Smarty_Internal_Data { // // render cached template // - $_template->properties['unifunc']($_template); + /* PrestaShop related to PSCFV-10040 - http://www.smarty.net/forums/viewtopic.php?p=76467 */ + if (isset($_template->properties['unifunc'])) + $_template->properties['unifunc']($_template); // any unclosed {capture} tags ? if (isset($_template->_capture_stack[0][0])) { $_template->capture_error();