mirror of
https://github.com/lucaspalomodevelop/core.git
synced 2026-03-15 00:54:41 +00:00
plugins: drop empty run result
This commit is contained in:
parent
2c588a4bc0
commit
edc42e0e80
@ -336,7 +336,10 @@ function plugins_run($hook, $args = [])
|
||||
implode(',', array_slice($args, 0, $argc))
|
||||
), LOG_DEBUG);
|
||||
try {
|
||||
$ret[$name] = call_user_func_array($argf, array_slice($args, 0, $argc));
|
||||
$result = call_user_func_array($argf, array_slice($args, 0, $argc));
|
||||
if (!empty($result)) {
|
||||
$ret[$name] = $result;
|
||||
}
|
||||
} catch (\Error $e) {
|
||||
error_log($e);
|
||||
}
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user