Skip to content
This repository was archived by the owner on Nov 4, 2023. It is now read-only.
This repository was archived by the owner on Nov 4, 2023. It is now read-only.

FileRequired errorcheck PHP error > count() on noncountable object #61

Description

@vizlot

suggestion to make a simpler condition avoiding null variable

      if (!$found && !$sessionFiles[$this->formFieldName]) {
   		$checkFailed = $this->getCheckFailed();
       }

if (!$found && count($sessionFiles[$this->formFieldName]) === 0) {

TYPO3 8.7
Core: Error handler (FE): PHP Warning: count(): Parameter must be an array or an object that implements Countable in /sites/gazvacancy/htdocs/typo3conf/ext/formhandler/Classes/Validator/ErrorCheck/FileRequired.php line 35

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions