Skip to content

Commit

Permalink
fix: fix an issue where callable hooks were not executed
Browse files Browse the repository at this point in the history
  • Loading branch information
Martin Neundorfer committed Nov 30, 2021
1 parent 789fea3 commit 580c0b7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Classes/Dbg.php
Original file line number Diff line number Diff line change
Expand Up @@ -243,7 +243,7 @@ public static function runHooks(string $type, string $functionName, array $args)
}

foreach ($conf as $callback) {
if (! is_callable($callback)) {
if (is_callable($callback)) {
$callback($type, $functionName, $args);
}
}
Expand Down

0 comments on commit 580c0b7

Please sign in to comment.