[BUGFIX] Follow up: Remove PHP warnings when no icon is found 06/32806/2
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:52:49 +0000 (15:52 +0200)
commita2c5fe0bd3265ba4ce944d05d1d11c71441a08ac
tree9efc2de94156747885cf292763e9ff9069d5c303
parent84ffa62d47f71cb2bcafeedd07ab72164e49de42
[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/32806
Reviewed-by: Wouter Wolters <typo3@wouterwolters.nl>
Tested-by: Wouter Wolters <typo3@wouterwolters.nl>
typo3/sysext/backend/Classes/Form/FormEngine.php