mirror of
https://github.com/lucaspalomodevelop/core.git
synced 2026-03-16 09:34:39 +00:00
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:
parent
eaf8791d8a
commit
d89ade7ebe
@ -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();
|
||||
}
|
||||
}
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user