Parcourir la source

Fix issue with not saving data

Jaap Marcus il y a 5 ans
Parent
commit
0186114f70
1 fichiers modifiés avec 1 ajouts et 1 suppressions
  1. 1 1
      web/edit/web/index.php

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

@@ -337,7 +337,7 @@ if (!empty($_POST['save'])) {
     }
 
     // Enable/Disable nginx cache
-    if (($_SESSION['WEB_SYSTEM'] == 'nginx') && ($v_nginx_cache_check != $_POST['v_nginx_cache_check'] ) && ($v_nginx_cache_duration != $_POST['v_nginx_cache_duration'] && $_POST['v_nginx_cache'] = "yes" ) && (empty($_SESSION['error_msg']))) {
+    if (($_SESSION['WEB_SYSTEM'] == 'nginx') && ($v_nginx_cache_check != $_POST['v_nginx_cache_check'] ) || ($v_nginx_cache_duration != $_POST['v_nginx_cache_duration'] && $_POST['v_nginx_cache'] = "yes" ) && (empty($_SESSION['error_msg']))) {
         if ( $_POST['v_nginx_cache_check'] == 'on' ) {
             if (empty ($_POST['v_nginx_cache_duration'])){
                 echo $_POST['v_nginx_cache_duration'] = "2m";