Skip to content

Commit

Permalink
fix #42 Warning count Parameter must be an array
Browse files Browse the repository at this point in the history
  • Loading branch information
nliautaud authored Nov 19, 2018
1 parent 493d282 commit 69fb416
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion p01-contact/src/P01contact_Form.php
Original file line number Diff line number Diff line change
Expand Up @@ -212,7 +212,7 @@ private function checkSpam($post)
return false;
}
$loads = Session::get('pageloads');
if (count($loads > 1) && $loads[1] - $loads[0] < $this->config('min_sec_after_load')) {
if (count($loads) > 1 && $loads[1] - $loads[0] < $this->config('min_sec_after_load')) {
$this->setStatus('error_pageload');
return false;
}
Expand Down

0 comments on commit 69fb416

Please sign in to comment.