Skip to content

Commit

Permalink
Correct undefined index error
Browse files Browse the repository at this point in the history
  • Loading branch information
tinoest committed Apr 14, 2018
1 parent 8f2acbb commit a3c92f5
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions StopSpammer.integration.php
Expand Up @@ -37,13 +37,13 @@ function int_stopSpammer(&$regOptions, &$reg_errors)

$url = 'https://api.stopforumspam.org/api';
$data = '?';
if($modSettings['stopspammer_ip_check']) {
if(!empty($modSettings['stopspammer_ip_check'])) {
$data .= 'ip='.$regOptions['ip'].'&';
}
if($modSettings['stopspammer_username_check']) {
if(!empty($modSettings['stopspammer_username_check'])) {
$data .= 'username=' . urlencode($regOptions['username']).'&';
}
if($modSettings['stopspammer_email_check']) {
if(!empty($modSettings['stopspammer_email_check'])) {
$data .= 'email=' . urlencode($regOptions['email']).'&';
}
$data .= 'json';
Expand Down

0 comments on commit a3c92f5

Please sign in to comment.