diff --git a/modules/Core/module.php b/modules/Core/module.php index b161e7d8b6..322d7d4cca 100644 --- a/modules/Core/module.php +++ b/modules/Core/module.php @@ -792,10 +792,9 @@ public function onPageLoad(User $user, Pages $pages, Cache $cache, Smarty $smart return DB::getInstance()->get('user_profile_wall_posts_reactions', ['user_id', $user->data()->id])->results(); }); ReactionsProfileWidget::addRecievedCollector(static function (User $user) { - return DB::getInstance()->query( - 'SELECT r.reaction_id FROM nl2_user_profile_wall_posts_reactions r JOIN nl2_user_profile_wall_posts w ON r.post_id = w.id WHERE w.author_id = ?', [ - $user->data()->id - ])->results(); + return DB::getInstance()->query('SELECT r.reaction_id FROM nl2_user_profile_wall_posts_reactions r JOIN nl2_user_profile_wall_posts w ON r.post_id = w.id WHERE w.author_id = ?', [ + $user->data()->id + ])->results(); }); }