Skip to content

Commit

Permalink
Fix a bug in profile support
Browse files Browse the repository at this point in the history
  • Loading branch information
dcflachs committed Feb 20, 2024
1 parent 3c47d0b commit 169a096
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions source/compose.manager/php/exec.php
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}

Expand Down

0 comments on commit 169a096

Please sign in to comment.