Fix FSuggestselect
This commit is contained in:
parent
8c9eb9a58d
commit
01659d731f
1 changed files with 2 additions and 2 deletions
|
@ -67,12 +67,12 @@ class Delivery
|
||||||
$uid = $target_item['uid'];
|
$uid = $target_item['uid'];
|
||||||
} elseif ($cmd == self::SUGGESTION) {
|
} elseif ($cmd == self::SUGGESTION) {
|
||||||
try {
|
try {
|
||||||
$target_item = DI::fsuggest()->selectOneById($post_uriid);
|
$target_item = DI::fsuggest()->selectOneById($post_uriid)->toArray();
|
||||||
} catch (FriendSuggestNotFoundException $e) {
|
} catch (FriendSuggestNotFoundException $e) {
|
||||||
DI::logger()->info('Cannot find FriendSuggestion', ['id' => $post_uriid]);
|
DI::logger()->info('Cannot find FriendSuggestion', ['id' => $post_uriid]);
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
$uid = $target_item->uid;
|
$uid = $target_item['uid'];
|
||||||
} elseif ($cmd == self::RELOCATION) {
|
} elseif ($cmd == self::RELOCATION) {
|
||||||
$uid = $post_uriid;
|
$uid = $post_uriid;
|
||||||
$target_item = [];
|
$target_item = [];
|
||||||
|
|
Loading…
Reference in a new issue