From 169a0965f4e6ef2f5c1370572c051ad7aea0f4f2 Mon Sep 17 00:00:00 2001 From: dcflachs Date: Tue, 20 Feb 2024 18:03:53 -0500 Subject: [PATCH] Fix a bug in profile support --- source/compose.manager/php/exec.php | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/source/compose.manager/php/exec.php b/source/compose.manager/php/exec.php index 823b157..dee0af0 100644 --- a/source/compose.manager/php/exec.php +++ b/source/compose.manager/php/exec.php @@ -219,14 +219,15 @@ function getElement($element) { if( $scriptContents == "[]" ) { if ( is_file($fileName) ) { exec("rm ".escapeshellarg($fileName)); - echo "$fileName deleted"; + echo json_encode( [ 'result' => 'success', 'message' => "$fileName deleted" ] ); } + echo json_encode( [ 'result' => 'success', 'message' => '' ] ); break; } file_put_contents("$fileName",$scriptContents); - echo "$fileName saved"; + echo json_encode( [ 'result' => 'success', 'message' => "$fileName saved" ] ); break; }