From af3a57376a2d79455aa8d767b18e48a2b25ee2aa Mon Sep 17 00:00:00 2001 From: rabuzarus Date: Mon, 12 Feb 2018 17:05:01 +0100 Subject: [PATCH] Item::tagDeliver(): remove contact as array key for hooks because it was never declared --- doc/Addons.md | 2 ++ src/Model/Item.php | 3 +-- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/doc/Addons.md b/doc/Addons.md index 5d13107769..dadf76abd7 100644 --- a/doc/Addons.md +++ b/doc/Addons.md @@ -471,3 +471,5 @@ mod/cb.php: Addon::callHooks('cb_afterpost'); mod/cb.php: Addon::callHooks('cb_content', $o); mod/directory.php: Addon::callHooks('directory_item', $arr); + +src/Model/Item.php Addon::callHooks('tagged', $arr); diff --git a/src/Model/Item.php b/src/Model/Item.php index 40c8980243..fae3394bc3 100644 --- a/src/Model/Item.php +++ b/src/Model/Item.php @@ -1294,8 +1294,7 @@ class Item extends BaseObject return; } - /// @todo Declare $r or lets remove it - Rabuzarus - 2018-02-12. - $arr = ['item' => $item, 'user' => $u[0], 'contact' => $r[0]]; + $arr = ['item' => $item, 'user' => $u[0]]; Addon::callHooks('tagged', $arr);