We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 849eaee commit 0b29a70Copy full SHA for 0b29a70
src/stacks.php
@@ -640,7 +640,8 @@ function slic_stacks_read_ports_from_docker($stack_id) {
640
641
// Check if containers are actually running
642
$check_command = "docker ps -q -f label=com.docker.compose.project='$project_name' 2>/dev/null";
643
- $container_ids = trim(shell_exec($check_command));
+ $check_command_output = shell_exec( $check_command );
644
+ $container_ids = $check_command_output ? trim( $check_command_output ) : '';
645
646
if (empty($container_ids)) {
647
// Containers not running
0 commit comments