Skip to content

Commit

Permalink
Fixes #2
Browse files Browse the repository at this point in the history
  • Loading branch information
robertgarrigos authored Oct 29, 2022
1 parent 7540224 commit e85a2e8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion rate.bots.inc
Original file line number Diff line number Diff line change
Expand Up @@ -133,7 +133,7 @@ function rate_bots_check_botscout($ip) {
$url = "http://botscout.com/test/?ip=$ip&key=$key";
$data = backdrop_http_request($url, array('timeout' => 2));
if ($data->code == 200) {
if ($data->data{0} == 'Y') {
if ($data->data[0] == 'Y') {
return TRUE;
}
}
Expand Down

0 comments on commit e85a2e8

Please sign in to comment.