@@ -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);