From 0efb94f2bfb86b76c3b9d50c4ac2cb019776de76 Mon Sep 17 00:00:00 2001 From: ralf Date: Thu, 28 Apr 2022 10:38:41 +0200 Subject: [PATCH] do NOT log not found template because of missing $row_cont expansion on server-side --- api/src/Etemplate/Widget/Template.php | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/api/src/Etemplate/Widget/Template.php b/api/src/Etemplate/Widget/Template.php index da2021ec17..1eca6b9a64 100644 --- a/api/src/Etemplate/Widget/Template.php +++ b/api/src/Etemplate/Widget/Template.php @@ -101,8 +101,11 @@ class Template extends Etemplate\Widget return $template; } } - - error_log(__METHOD__."('$name', '$template_set', '$version', '$load_via') template NOT found!"); + // do NOT log not found template because of missing $row_cont expansion on server-side + if (substr($name, 0, 10) !== '$row_cont[') + { + error_log(__METHOD__."('$name', '$template_set', '$version', '$load_via') template NOT found!"); + } return false; } $reader = new XMLReader();