From d89ade7ebe03bdc27c5cb3e5f7f9a129ab8fab54 Mon Sep 17 00:00:00 2001 From: Michael Steenbeek Date: Mon, 12 Nov 2018 11:44:21 +0100 Subject: [PATCH] Fix use of undefined constant where string was intended function_exists() takes a string, but an undefined constant was passed. If a constant is undefined, PHP will convert it to a string, but this is very dirty behaviour. --- src/www/diag_logs_template.inc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/www/diag_logs_template.inc b/src/www/diag_logs_template.inc index c813edbd8..5844b2769 100644 --- a/src/www/diag_logs_template.inc +++ b/src/www/diag_logs_template.inc @@ -52,7 +52,7 @@ if (!empty($_POST['clear'])) { } else { system_clear_log($logfile); } - if (function_exists(clear_hook)) { + if (function_exists('clear_hook')) { clear_hook(); } }