From 50974db8cc5aa9934d6008c18367ef3e7cdd07bc Mon Sep 17 00:00:00 2001 From: Mark Unwin Date: Thu, 8 Feb 2024 09:00:54 +1000 Subject: [PATCH] If any command line output is received from enterprise.bin, throw a flash warning and output those lines. --- app/Helpers/response_helper.php | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/app/Helpers/response_helper.php b/app/Helpers/response_helper.php index 29f9619b2..0dda399f9 100644 --- a/app/Helpers/response_helper.php +++ b/app/Helpers/response_helper.php @@ -471,6 +471,11 @@ function response_create($instance = null) } if (!empty($output)) { log_message('debug', 'Output: ' . json_encode($output)); + $string = 'There is an issue with Enterprise functionality. Output below:'; + foreach ($output as $line) { + $string = $string . "
" . $line; + } + \Config\Services::session()->setFlashdata('error', $string); } $sql = "SELECT * FROM enterprise WHERE id = $id"; $result = $db->query($sql)->getResult();