shenshihai há 2 anos atrás
pai
commit
1f8237e748
1 ficheiros alterados com 1 adições e 1 exclusões
  1. 1 1
      src/Utility.php

+ 1 - 1
src/Utility.php

@@ -42,7 +42,7 @@ function getClientIp(){
 		logError('failed to get client ip',$url);
 		return false;
 	}
-	$json = json_decode($data);
+	$json = json_decode($data,true);
 	if(!$json){
 		logError('failed to parse client ip data',$data);
 		return false;