From: Hypolite Petovan Date: Sat, 19 Feb 2022 03:44:11 +0000 (-0500) Subject: Prevent warnings on undefined Smarty template variables X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=4fe2257d8e4c663cbb17f2c38ad848ab5cd2c32a;p=friendica.git Prevent warnings on undefined Smarty template variables --- diff --git a/src/Render/FriendicaSmarty.php b/src/Render/FriendicaSmarty.php index 44a741d7c8..50dda5eba1 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(); } }