Skip to content
Snippets Groups Projects
Commit 03de4fae authored by Michael Fairchild's avatar Michael Fairchild
Browse files

Make sure that the total index is set before trying to access it.

parent 23a154ba
No related branches found
No related tags found
No related merge requests found
...@@ -91,7 +91,7 @@ $rules['ip'][] = function($spam) { ...@@ -91,7 +91,7 @@ $rules['ip'][] = function($spam) {
if ($result = $db->query($sql)) { if ($result = $db->query($sql)) {
$row = $result->fetch_assoc(); $row = $result->fetch_assoc();
if ($row['total'] >= 1) { if (isset($row['total']) && $row['total'] >= 1) {
return true; return true;
} }
} }
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment