Kaynağa Gözat

Parameters Can Be Locked From Users

own3mall 8 yıl önce
ebeveyn
işleme
6dad113c9f
1 değiştirilmiş dosya ile 2 ekleme ve 2 silme
  1. 2 2
      modules/gamemanager/mini_start.php

+ 2 - 2
modules/gamemanager/mini_start.php

@@ -31,7 +31,7 @@ $isAdmin = $db->isAdmin($_SESSION['user_id']);
 if (!function_exists('processParamValue')) {
 	function processParamValue($paramKey, $paramValue){
 		// Set globals
-		global $save_param, $start_cmd, $param;
+		global $save_param, $start_cmd, $param, $server_xml;
 		
 		if (0 == strlen($paramValue))
 			return false;
@@ -494,7 +494,7 @@ elseif($server_home['home_id'] == $_POST['home_id'])
 				}
 				
 				// If the parameter wasn't posted (because it may have been disabled due to access param) or a sneaky user deleted it to circumvent security
-				if($found == 0){
+				if($found == 0 && !empty($origValue)){
 					processParamValue((string)$param['key'], $origValue);
 				}