shenshihai hace 2 años
padre
commit
1f8237e748
Se han modificado 1 ficheros con 1 adiciones y 1 borrados
  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;