lbk 6 years ago
parent
commit
b4c48eeb75
1 changed files with 4 additions and 1 deletions
  1. 4 1
      components/Secret.php

+ 4 - 1
components/Secret.php

@@ -103,10 +103,13 @@ class Secret extends Component
 		if ($verb == 'GET' && $md5 != '')
 			return false;
 
-		if (!is_array($post) || !$post)
+		if (!is_array($post))
 			return true;
 
 		$s = static::kSortParams($post);
+		if (!$s)
+			return true;
+
 		$this->_contentMd5 = md5(json_encode($s));
 		if ( strtolower($md5) != strtolower($this->_contentMd5))
 			return false;