[BUGFIX] fluid: Harden CountViewHelper 27/54927/2
authorChristian Kuhn <lolli@schwarzbu.ch>
Sun, 3 Dec 2017 20:30:35 +0000 (21:30 +0100)
committerChristian Kuhn <lolli@schwarzbu.ch>
Sun, 3 Dec 2017 20:53:46 +0000 (21:53 +0100)
commit5e9e30f19ad922a9a980b4a78f3ab87818e9fa93
tree3d2aa577aba343c20d3d2ee1c8eff8afbb191213
parent1a98b14c8cb93e8c0873c116e1bfbc0638408f0e
[BUGFIX] fluid: Harden CountViewHelper

The CountViewHelper calls count() on non-arrays or non-Countable
objects. This throws warnings on PHP 7.2 - sanitize this call.

Change-Id: Ie1932c31a099577cb0d344824a6441509aefbc03
Resolves: #83214
Releases: 7.6
Reviewed-on: https://review.typo3.org/54927
Tested-by: TYPO3com <no-reply@typo3.com>
Reviewed-by: Christian Kuhn <lolli@schwarzbu.ch>
Tested-by: Christian Kuhn <lolli@schwarzbu.ch>
typo3/sysext/fluid/Classes/ViewHelpers/CountViewHelper.php