Ver Fonte

#4736 - PHP warning in Extended Search

roman.lesnikov@gmail.com há 2 anos atrás
pai
commit
c1e8508b09
1 ficheiros alterados com 4 adições e 5 exclusões
  1. 4 5
      template/scripts/BxBaseSearchExtendedServices.php

+ 4 - 5
template/scripts/BxBaseSearchExtendedServices.php

@@ -55,14 +55,13 @@ return [$mForm];
        
         if ($mDefValues){
             $mDefValues = json_decode($mDefValues, true);
-        }
-        
-        foreach($mDefValues as $sKey => $aParam){
-            $_POST[$sKey] = $aParam;
+            foreach($mDefValues as $sKey => $aParam){
+                $_POST[$sKey] = $aParam;
+            }
         }
         
         if (is_string($mParams)){
-           $aPa = json_decode($mParams, true);    
+            $aPa = json_decode($mParams, true);    
             $aParams['object'] = $aPa['params']["object"];
             $aParams['params'] = $aPa['params'];