Item::tagDeliver(): remove contact as array key for hooks because it was never declared

This commit is contained in:
rabuzarus 2018-02-12 17:05:01 +01:00
parent 58b4169097
commit af3a57376a
2 changed files with 3 additions and 2 deletions

View 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);

View 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);