System Void преди 9 години
родител
ревизия
8ae70316e9
променени са 1 файла, в които са добавени 6 реда и са изтрити 2 реда
  1. 6 2
      web/stop/service/index.php

+ 6 - 2
web/stop/service/index.php

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