From 979532d3df1f37f16ac5355df367ab94ce8081e9 Mon Sep 17 00:00:00 2001
From: slawkens <slawkens@gmail.com>
Date: Thu, 2 Feb 2023 20:51:55 +0100
Subject: [PATCH] Display warning if file included by hook does not exist

---
 system/hooks.php | 4 +---
 1 file changed, 1 insertion(+), 3 deletions(-)

diff --git a/system/hooks.php b/system/hooks.php
index ae9333c5..3e9a738f 100644
--- a/system/hooks.php
+++ b/system/hooks.php
@@ -74,9 +74,7 @@ class Hook
 		}*/
 
 		global $db, $config, $template_path, $ots, $content, $twig;
-		if(file_exists(BASE . $this->_file)) {
-			$ret = require BASE . $this->_file;
-		}
+		$ret = include BASE . $this->_file;
 
 		return !isset($ret) || $ret == 1 || $ret;
 	}