Fix FSuggestselect

This commit is contained in:
Philipp 2021-10-23 20:17:12 +02:00 committed by Hypolite Petovan
parent 8c9eb9a58d
commit 01659d731f

View file

@ -67,12 +67,12 @@ class Delivery
$uid = $target_item['uid'];
} elseif ($cmd == self::SUGGESTION) {
try {
$target_item = DI::fsuggest()->selectOneById($post_uriid);
$target_item = DI::fsuggest()->selectOneById($post_uriid)->toArray();
} catch (FriendSuggestNotFoundException $e) {
DI::logger()->info('Cannot find FriendSuggestion', ['id' => $post_uriid]);
return;
}
$uid = $target_item->uid;
$uid = $target_item['uid'];
} elseif ($cmd == self::RELOCATION) {
$uid = $post_uriid;
$target_item = [];