Update index.php

This commit is contained in:
System Void 2017-03-04 22:45:02 +00:00 committed by GitHub
parent 1e4063eb7a
commit 8ae70316e9

View file

@ -14,10 +14,14 @@ if ($_SESSION['user'] == 'admin') {
exec (VESTA_CMD."v-stop-service ".$v_service, $output, $return_var);
}
}
if ($return_var != 0) {
$error = implode('<br>', $output);
if (empty($error)) $error = __('SERVICE_ACTION_FAILED',__('stop'),$v_service);
$_SESSION['error_srv'] = $error;
if (empty($error)) {
$error = __('SERVICE_ACTION_FAILED', __('stop'), $v_service);
}
$_SESSION['error_srv'] = $error;
}
unset($output);
}