[BUGFIX] Allow closures in filters methods for directory items 53/37153/6
authorChristoph Dörfel <christoph.doerfel@gmail.com>
Tue, 24 Feb 2015 07:23:28 +0000 (08:23 +0100)
committerNicole Cordes <typo3@cordes.co>
Mon, 11 May 2015 12:30:56 +0000 (14:30 +0200)
commit3183decd48c144fefc0e54b95431b633a8149012
tree50529e06eb184813a4c3143bb85f062bd7b82560
parentdba72f3d7ea8814e9ba1d3185a5a6d178839529d
[BUGFIX] Allow closures in filters methods for directory items

Instead of checking if a given filter is callable a is_array check
is done. But the filter can also be a closure and a is_array would
fail then.

This patch changes the is_array check to is_callable.

Resolves: #65244
Releases: master, 6.2
Change-Id: I1a1e9ce0e789bd36a4fa36e91389e8b62c50116e
Reviewed-on: http://review.typo3.org/37153
Reviewed-by: Christian Kuhn <lolli@schwarzbu.ch>
Tested-by: Christian Kuhn <lolli@schwarzbu.ch>
Reviewed-by: Nicole Cordes <typo3@cordes.co>
Tested-by: Nicole Cordes <typo3@cordes.co>
typo3/sysext/core/Classes/Resource/Driver/LocalDriver.php
typo3/sysext/core/Tests/Unit/Resource/Driver/LocalDriverTest.php