From 79d56beb8a9c26471d5e536c224ff77c5fcf0624 Mon Sep 17 00:00:00 2001 From: plegall Date: Fri, 16 Sep 2022 10:03:47 +0200 Subject: [PATCH] fixes #1730 replace Smarty getVariable by getTemplateVars --- include/calendar_base.class.php | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/include/calendar_base.class.php b/include/calendar_base.class.php index 1b59919a2..6f6735e1a 100644 --- a/include/calendar_base.class.php +++ b/include/calendar_base.class.php @@ -352,11 +352,11 @@ GROUP BY period'; if ( !empty($tpl_var) ) { - $existing = $template->smarty->getVariable('chronology_navigation_bars'); - if (! ($existing instanceof Smarty_Undefined_Variable)) + $existing = $template->smarty->getTemplateVars('chronology_navigation_bars'); + if (!empty($existing)) { - $existing->value[ sizeof($existing->value)-1 ] = - array_merge( $existing->value[ sizeof($existing->value)-1 ], $tpl_var); + $existing[ sizeof($existing)-1 ] = array_merge( $existing[ sizeof($existing)-1 ], $tpl_var); + $template->assign('chronology_navigation_bars', $existing); } else {