[BUGFIX] Follow up: Remove PHP warnings when no icon is found 03/32803/3
authorNicole Cordes <typo3@cordes.co>
Tue, 16 Sep 2014 13:02:08 +0000 (15:02 +0200)
committerWouter Wolters <typo3@wouterwolters.nl>
Tue, 16 Sep 2014 13:41:49 +0000 (15:41 +0200)
commit2ce2b94329a5b592759a38fcb96c7259ea57ed8a
treeacd74647317c5e09eb44a333b785280f5b0469da
parent8c247ff3226729b15ce767588c7cf91a5136e3c8
[BUGFIX] Follow up: Remove PHP warnings when no icon is found

With https://review.typo3.org/32616/ a check with file_exists() was
introduced to prevent warnings on accessing non-image files. The check
returns true for files and folders. Now warnings are thrown, if an image
icon links to a folder. This patch replaces file_exists() with is_file()
to prevent further warnings.

Resolves: #61640
Releases: 6.3, 6.2
Change-Id: If2f7db44588d7fb9f90d05fb3192653002fe0202
Reviewed-on: http://review.typo3.org/32803
Reviewed-by: Markus Klein <klein.t3@reelworx.at>
Tested-by: Markus Klein <klein.t3@reelworx.at>
Reviewed-by: Andreas Fernandez <andreas.fernandez@aspedia.de>
Tested-by: Andreas Fernandez <andreas.fernandez@aspedia.de>
Reviewed-by: Wouter Wolters <typo3@wouterwolters.nl>
Tested-by: Wouter Wolters <typo3@wouterwolters.nl>
typo3/sysext/backend/Classes/Form/FormEngine.php