Skip to content

Commit

Permalink
Fixes #3
Browse files Browse the repository at this point in the history
  • Loading branch information
robertgarrigos authored Oct 30, 2022
1 parent e85a2e8 commit 8559610
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion rate.admin.inc
Original file line number Diff line number Diff line change
Expand Up @@ -879,7 +879,7 @@ function rate_settings_form_validate($form, &$form_state) {
$url = "http://botscout.com/test/?ip=84.16.230.111&key=" . $form_state['values'][RATE_VAR_BOT_BOTSCOUT_KEY];
$data = backdrop_http_request($url, array('timeout' => 5));
if ($data->code == 200) {
if ($data->data{0} == 'Y' || $data->data{0} == 'N') {
if ($data->data[0] == 'Y' || $data->data[0] == 'N') {
backdrop_set_message(t('Rate has succesfully contacted the BotScout server.'));
}
else {
Expand Down

0 comments on commit 8559610

Please sign in to comment.