From 4fe2257d8e4c663cbb17f2c38ad848ab5cd2c32a Mon Sep 17 00:00:00 2001 From: Hypolite Petovan Date: Fri, 18 Feb 2022 22:44:11 -0500 Subject: [PATCH] Prevent warnings on undefined Smarty template variables --- src/Render/FriendicaSmarty.php | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/Render/FriendicaSmarty.php b/src/Render/FriendicaSmarty.php index 44a741d7c..50dda5eba 100644 --- a/src/Render/FriendicaSmarty.php +++ b/src/Render/FriendicaSmarty.php @@ -58,5 +58,7 @@ class FriendicaSmarty extends Smarty // Don't report errors so verbosely $this->error_reporting = E_ALL & ~E_NOTICE; + + $this->muteUndefinedOrNullWarnings(); } }