Robert Zollner 6 лет назад
Родитель
Сommit
0af92af016
1 измененных файлов с 3 добавлено и 1 удалено
  1. 3 1
      web/edit/server/index.php

+ 3 - 1
web/edit/server/index.php

@@ -63,6 +63,8 @@ $v_php_versions = array_map(function($php_version) use ($backend_templates, $bac
         "tpl" => strtoupper(str_replace('.', '_', $php_version)),
         "tpl" => strtoupper(str_replace('.', '_', $php_version)),
         "version" => str_ireplace('php-', '', $php_version),
         "version" => str_ireplace('php-', '', $php_version),
         "usedby" => [],
         "usedby" => [],
+        "installed" => false,
+        "protected" => false,
     ];
     ];
 
 
     if(in_array($phpinfo->tpl, $backend_templates)) {
     if(in_array($phpinfo->tpl, $backend_templates)) {
@@ -173,7 +175,7 @@ if (!empty($_POST['save'])) {
 
 
     // Install/remove php versions
     // Install/remove php versions
     if (empty($_SESSION['error_msg'])) {
     if (empty($_SESSION['error_msg'])) {
-        if(!empty($v_php_versions) && count($_POST['v_php_versions'] != count($v_php_versions))) {
+        if(!empty($v_php_versions)) {
             $post_php = $_POST['v_php_versions'];
             $post_php = $_POST['v_php_versions'];
 
 
             array_map(function($php_version) use ($post_php) {
             array_map(function($php_version) use ($post_php) {