[BUGFIX] Allow closures in filters methods for directory items 39/39439/2
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 13:56:19 +0000 (15:56 +0200)
commit68e80aae1a14dd13205b211195cb62a7a9fa16b2
treedb6cd5d0a71ba565c8ec855c912eca9c7c1edb2c
parentb52b9ae7b1ec3317e525215159e49494d8eb2728
[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/39439
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