]> git.mxchange.org Git - friendica.git/blobdiff - src/Render/FriendicaSmartyEngine.php
Friendica copyright changed from 2023 to 2034
[friendica.git] / src / Render / FriendicaSmartyEngine.php
index 5ea01166fd49a0d14dab88221e8a487800e995cd..61dec3c011b1224556f4e7b28e4893f6545235ba 100644 (file)
@@ -1,6 +1,6 @@
 <?php
 /**
- * @copyright Copyright (C) 2010-2022, the Friendica project
+ * @copyright Copyright (C) 2010-2024, the Friendica project
  *
  * @license GNU AGPL version 3 or any later version
  *
@@ -81,7 +81,7 @@ final class FriendicaSmartyEngine extends TemplateEngine
 
                // "middleware": inject variables into templates
                $arr = [
-                       'template' => basename($this->smarty->filename),
+                       'template' => basename($this->smarty->filename ?? ''),
                        'vars' => $vars
                ];
                Hook::callAll('template_vars', $arr);