Browse Source

fix: empty return of unknow detail

master
Dnomd343 3 years ago
parent
commit
198e6a0ac4
  1. 3
      backend/getInfo.php

3
backend/getInfo.php

@ -99,6 +99,9 @@ function getIPInfo($ip) {
$info['detail'] = $info['as'] . ' ' . $info['isp'];
}
}
if (trim($info['detail']) == '') {
$info['detail'] = null;
}
return $info;
}

Loading…
Cancel
Save