From ae32330ed7eafab5434ab27db5758f6c6d601fc5 Mon Sep 17 00:00:00 2001 From: Dwi Swandhana Date: Fri, 30 Jan 2026 09:42:18 +0700 Subject: [PATCH] push --- htdocs/app/Services/AstmMessageService.php | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/htdocs/app/Services/AstmMessageService.php b/htdocs/app/Services/AstmMessageService.php index 2b29daba..1a6a91fd 100644 --- a/htdocs/app/Services/AstmMessageService.php +++ b/htdocs/app/Services/AstmMessageService.php @@ -660,12 +660,11 @@ class AstmMessageService $final = []; foreach ($lines as $line) { if (!preg_match('/^[A-Z]\|/', $line)) { - if (isset($final[count($final)-1])) { + if (empty($final)) { $final[] = $line; - } else { - $final[count($final)-1] .= $line; + continue; } - + $final[count($final)-1] .= $line; } else { $final[] = $line; }