Skip to content
Snippets Groups Projects
Verified Commit 3b50fd46 authored by Florian Azizian's avatar Florian Azizian
Browse files

FEAT #12595 TIME 0:05 error if account_id is empty

parent 1ef5e26a
No related branches found
No related tags found
No related merge requests found
...@@ -56,7 +56,9 @@ class SummaryController ...@@ -56,7 +56,9 @@ class SummaryController
} }
$maarch2ged = MessageExchangeModel::get(['select' => ['type', 'date as send_date', 'account_id'], 'where' => ['res_id_master = ?', 'status = ?'], 'data' => [$args['resId'], 'S'], 'limit' => (int)$queryParams['limit']]); $maarch2ged = MessageExchangeModel::get(['select' => ['type', 'date as send_date', 'account_id'], 'where' => ['res_id_master = ?', 'status = ?'], 'data' => [$args['resId'], 'S'], 'limit' => (int)$queryParams['limit']]);
foreach ($maarch2ged as $key => $value) { foreach ($maarch2ged as $key => $value) {
$userInfo = UserModel::getByLogin(['select' => ['firstname', 'lastname'], 'login' => $value['account_id']]); if (!empty($value['account_id'])) {
$userInfo = UserModel::getByLogin(['select' => ['firstname', 'lastname'], 'login' => $value['account_id']]);
}
$maarch2ged[$key]['userInfo'] = $userInfo['firstname'] . ' ' . $userInfo['lastname']; $maarch2ged[$key]['userInfo'] = $userInfo['firstname'] . ' ' . $userInfo['lastname'];
$maarch2ged[$key]['object'] = ''; $maarch2ged[$key]['object'] = '';
$maarch2ged[$key]['status'] = 'SENT'; $maarch2ged[$key]['status'] = 'SENT';
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment