Skip to content

Commit

Permalink
If any command line output is received from enterprise.bin, throw a f…
Browse files Browse the repository at this point in the history
…lash warning and output those lines.
  • Loading branch information
mark-unwin committed Feb 7, 2024
1 parent 5e71d3f commit 50974db
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions app/Helpers/response_helper.php
Original file line number Diff line number Diff line change
Expand Up @@ -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 . "<br>" . $line;
}
\Config\Services::session()->setFlashdata('error', $string);
}
$sql = "SELECT * FROM enterprise WHERE id = $id";
$result = $db->query($sql)->getResult();
Expand Down

0 comments on commit 50974db

Please sign in to comment.