[BUGFIX] PHP 7.2 warning in SJBR\SrFeuserRegister\Request\Parameters 56/56556/3
authorStanislas Rolland <typo3@sjbr.ca>
Wed, 4 Apr 2018 20:40:47 +0000 (16:40 -0400)
committerStanislas Rolland <typo3@sjbr.ca>
Mon, 16 Apr 2018 22:09:35 +0000 (00:09 +0200)
PHP Warning: count() with PHP 7.2

Resolves: #84605
Change-Id: I40ea63a225b19856926833bf36a2179cfc59b406
Reviewed-on: https://review.typo3.org/56556
Reviewed-by: Oliver Klee <typo3-coding@oliverklee.de>
Reviewed-by: Stanislas Rolland <typo3@sjbr.ca>
Tested-by: Stanislas Rolland <typo3@sjbr.ca>
ChangeLog
Classes/Request/Parameters.php

index 7a03fc9..71bbbc6 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,6 @@
+2018-04-04 Stanislas Rolland  <typo3(arobas)sjbr.ca>
+       * Resolves #84605: PHP Warning: count() in SJBR\SrFeuserRegister\Request\Parameters
+
 2018-04-02 Stanislas Rolland  <typo3(arobas)sjbr.ca>
        * Resolves #84076: Honour TS setup delete = 0
        * Resolves #84077: Language label overrides for select fields not respected in forms
index 3f9f927..5abb3e8 100644 (file)
@@ -300,6 +300,7 @@ class Parameters
                        }
                }
                if (!$pid) {
+                       $pids = [];
                        if ($this->cObj->data['pages']) {
                                $pids = explode(',', $this->cObj->data['pages']);
                        }