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