X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;f=src%2FCore%2FHook.php;h=81c5d882dc1b6688219e4e057e3d2229491c39f9;hb=b4c1fb0d9c30ce9de46ed1f89b79138cc9a812cf;hp=d7b1f737a0289ad0e30c837ffb33e44fe4acdae7;hpb=5e0b4b8a8f39f28fcfc2812e66223d95c92431a0;p=friendica.git diff --git a/src/Core/Hook.php b/src/Core/Hook.php index d7b1f737a0..81c5d882dc 100644 --- a/src/Core/Hook.php +++ b/src/Core/Hook.php @@ -1,6 +1,6 @@ $name, 'file' => $hook[0], 'function' => $hook[1]]; - self::delete($condition, ['cascade' => false]); + self::delete($condition); } } @@ -250,13 +250,12 @@ class Hook * We have to clear the cached routerDispatchData because addons can provide routes * * @param array $condition - * @param array $options * @return bool * @throws \Exception */ - public static function delete(array $condition, array $options = []) + public static function delete(array $condition) { - $result = DBA::delete('hook', $condition, $options); + $result = DBA::delete('hook', $condition); if ($result) { DI::cache()->delete('routerDispatchData');