ARQUIDEAS-970 # Fixed error in template.php