From 69fb416fbd15673bdb0c5831f3be901a7bc75fe4 Mon Sep 17 00:00:00 2001 From: Nicolas Liautaud Date: Mon, 19 Nov 2018 05:08:16 +0100 Subject: [PATCH] fix #42 Warning count Parameter must be an array --- p01-contact/src/P01contact_Form.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/p01-contact/src/P01contact_Form.php b/p01-contact/src/P01contact_Form.php index ef6a57c..25997dc 100644 --- a/p01-contact/src/P01contact_Form.php +++ b/p01-contact/src/P01contact_Form.php @@ -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; }