Skip to content

Commit 8ae7031

Browse files
authored
Update index.php
1 parent 1e4063e commit 8ae7031

File tree

1 file changed

+6
-2
lines changed

1 file changed

+6
-2
lines changed

web/stop/service/index.php

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,10 +14,14 @@
1414
exec (VESTA_CMD."v-stop-service ".$v_service, $output, $return_var);
1515
}
1616
}
17+
1718
if ($return_var != 0) {
1819
$error = implode('<br>', $output);
19-
if (empty($error)) $error = __('SERVICE_ACTION_FAILED',__('stop'),$v_service);
20-
$_SESSION['error_srv'] = $error;
20+
if (empty($error)) {
21+
$error = __('SERVICE_ACTION_FAILED', __('stop'), $v_service);
22+
}
23+
24+
$_SESSION['error_srv'] = $error;
2125
}
2226
unset($output);
2327
}

0 commit comments

Comments
 (0)