Skip to content
GitLab
Projects Groups Snippets
  • /
  • Help
    • Help
    • Support
    • Community forum
    • Submit feedback
  • Sign in
  • typo3 typo3
  • Project information
    • Project information
    • Activity
    • Members
  • Repository
    • Repository
    • Files
    • Commits
    • Branches
    • Tags
    • Contributors
    • Graph
    • Compare
    • Locked Files
  • CI/CD
    • CI/CD
    • Pipelines
    • Jobs
    • Schedules
  • Deployments
    • Deployments
    • Environments
    • Releases
  • Packages and registries
    • Packages and registries
    • Container Registry
  • Analytics
    • Analytics
    • CI/CD
    • Insights
    • Repository
  • Activity
  • Graph
  • Jobs
  • Commits
Collapse sidebar
  • typo3typo3
  • typo3typo3
  • Repository
Switch branch/tag
  • typo3
  • typo3
  • sysext
  • frontend
  • Classes
  • ContentObject
  • ContentObjectRenderer.php
Find file BlameHistoryPermalink
  • Helmut Hummel's avatar
    [BUGFIX] Avoid fatal error in image rendering when processing fails · 5430aa93
    Helmut Hummel authored Jun 19, 2020
    Fatal error can occur, when the file variable isn't a string,
    which only happens, when file processing failed or the resolved
    file isn't an image.
    
    Nevertheless the fatal error should be avoided.
    
    Also clean up some variable usage to not change the type
    of variable and remove some not needed isset() check
    for better readability.
    
    Resolves: #91681
    Releases: master, 10.4
    Change-Id: Ibde8e1105fa7c0e233656b5dd49e083b6c7259ab
    Reviewed-on: https://review.typo3.org/c/Packages/TYPO3.CMS/+/64908
    
    
    Reviewed-by: Oliver Klee's avatarOliver Klee <typo3-coding@oliverklee.de>
    Reviewed-by: Georg Ringer's avatarGeorg Ringer <georg.ringer@gmail.com>
    Reviewed-by: Oliver Bartsch's avatarOliver Bartsch <bo@cedev.de>
    Reviewed-by: Helmut Hummel's avatarHelmut Hummel <typo3@helhum.io>
    Tested-by: core-ci's avatarcore-ci <typo3@b13.com>
    Tested-by: Georg Ringer's avatarGeorg Ringer <georg.ringer@gmail.com>
    Tested-by: Oliver Bartsch's avatarOliver Bartsch <bo@cedev.de>
    Tested-by: Helmut Hummel's avatarHelmut Hummel <typo3@helhum.io>
    5430aa93