Skip to content
Snippets Groups Projects
Commit 2ce2b943 authored by Nicole Cordes's avatar Nicole Cordes Committed by Wouter Wolters
Browse files

[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: default avatarMarkus Klein <klein.t3@reelworx.at>
Tested-by: default avatarMarkus Klein <klein.t3@reelworx.at>
Reviewed-by: default avatarAndreas Fernandez <andreas.fernandez@aspedia.de>
Tested-by: default avatarAndreas Fernandez <andreas.fernandez@aspedia.de>
Reviewed-by: default avatarWouter Wolters <typo3@wouterwolters.nl>
Tested-by: default avatarWouter Wolters <typo3@wouterwolters.nl>
parent 8c247ff3
Branches
Tags
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment