From 115dfbda4deac2e29ad5c407cf76347a3383a327 Mon Sep 17 00:00:00 2001 From: Tb Fajri Date: Sun, 10 Sep 2023 07:14:02 +0700 Subject: [PATCH] update --- Modules/Internal/Http/Controllers/Api/LivechatController.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Modules/Internal/Http/Controllers/Api/LivechatController.php b/Modules/Internal/Http/Controllers/Api/LivechatController.php index e8ef1620..c8074d8e 100644 --- a/Modules/Internal/Http/Controllers/Api/LivechatController.php +++ b/Modules/Internal/Http/Controllers/Api/LivechatController.php @@ -118,7 +118,7 @@ class LivechatController extends Controller $status = $liveChat->sStatus; $nIDUser = $liveChat->user->nIDUser ?? 0; // Principal or Dependent $paymentMethod = $liveChat->appointment ? Helper::sPaymentMethod($liveChat->appointment->sPaymentMethod) : 'N/A'; - $fullNameDoctor = $liveChat->doctor->user->full_name ? $liveChat->doctor->user->detail->sTitlePrefix . ' ' . $liveChat->doctor->user->full_name . ' ' . $liveChat->doctor->user->detail->sTitleSuffix : '-' ; + $fullNameDoctor = $liveChat->doctor->user != null ? $liveChat->doctor->user->detail->sTitlePrefix . ' ' . $liveChat->doctor->user->full_name . ' ' . $liveChat->doctor->user->detail->sTitleSuffix : '-' ; $recordType = 'P'; if ($nIDUser){ $recordType = 'D';