[-] 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

This commit is contained in:
gRoussac committed 2013-09-06 23:55:58 +02:00
1 parent 4c49048e39
commit 2874f14983
1 file changed
+2
@@ -278,6 +278,8 @@ abstract class Smarty_Internal_TemplateBase extends Smarty_Internal_Data {
// //
// render cached template // render cached template
// //
/* PrestaShop related to PSCFV-10040 - http://www.smarty.net/forums/viewtopic.php?p=76467 */
if (isset($_template->properties['unifunc']))
$_template->properties['unifunc']($_template); $_template->properties['unifunc']($_template);
// any unclosed {capture} tags ? // any unclosed {capture} tags ?
if (isset($_template->_capture_stack[0][0])) { if (isset($_template->_capture_stack[0][0])) {