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.
This commit is contained in:
Michael Steenbeek 2018-11-12 11:44:21 +01:00 committed by Franco Fichtner
parent eaf8791d8a
commit d89ade7ebe

View File

@ -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();
}
}