Item::tagDeliver(): remove contact as array key for hooks because it was never declared
This commit is contained in:
parent
58b4169097
commit
af3a57376a
2 changed files with 3 additions and 2 deletions
|
@ -471,3 +471,5 @@ mod/cb.php: Addon::callHooks('cb_afterpost');
|
||||||
mod/cb.php: Addon::callHooks('cb_content', $o);
|
mod/cb.php: Addon::callHooks('cb_content', $o);
|
||||||
|
|
||||||
mod/directory.php: Addon::callHooks('directory_item', $arr);
|
mod/directory.php: Addon::callHooks('directory_item', $arr);
|
||||||
|
|
||||||
|
src/Model/Item.php Addon::callHooks('tagged', $arr);
|
||||||
|
|
|
@ -1294,8 +1294,7 @@ class Item extends BaseObject
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
/// @todo Declare $r or lets remove it - Rabuzarus - 2018-02-12.
|
$arr = ['item' => $item, 'user' => $u[0]];
|
||||||
$arr = ['item' => $item, 'user' => $u[0], 'contact' => $r[0]];
|
|
||||||
|
|
||||||
Addon::callHooks('tagged', $arr);
|
Addon::callHooks('tagged', $arr);
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue