From: rabuzarus Date: Mon, 12 Feb 2018 16:05:01 +0000 (+0100) Subject: Item::tagDeliver(): remove contact as array key for hooks because it was never declared X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=af3a57376a2d79455aa8d767b18e48a2b25ee2aa;p=friendica.git Item::tagDeliver(): remove contact as array key for hooks because it was never declared --- 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);