]> git.mxchange.org Git - friendica.git/commitdiff
Item::tagDeliver(): remove contact as array key for hooks because it was never declared
authorrabuzarus <rabuzarus@t-online.de>
Mon, 12 Feb 2018 16:05:01 +0000 (17:05 +0100)
committerrabuzarus <rabuzarus@t-online.de>
Mon, 12 Feb 2018 16:05:01 +0000 (17:05 +0100)
doc/Addons.md
src/Model/Item.php

index 5d131077692a5c141afed8815544bf32c54a7c18..dadf76abd7dc677ea05566c8f641214b0745991f 100644 (file)
@@ -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);
index 40c8980243f6d9915700971ce59617cf3acf533c..fae3394bc32457944df984e2aa512a7dd5c7e95f 100644 (file)
@@ -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);