HomeCode
Diffusion Zed 969e363d21cb

Avoid to count a non-existing variable in profile controller

Description

Avoid to count a non-existing variable in profile controller

Summary:
When uploading a file, if there isn't any upload-related error,
the array $errors didn't exist.

This change fixes the following issue:

Uncaught TypeError: count(): Argument #1 ($value) must be of type
Countable|array, null given
in /var/51-wwwroot/zed/controllers/profile.php:170

Test Plan: Upload a file

Reviewers: dereckson

Reviewed By: dereckson

Differential Revision: https://code.zed.dereckson.be/D21

Details

Provenance
derecksonAuthored on Jun 5 2023, 16:14
Reviewer
dereckson
Differential Revision
Restricted Differential Revision
Parents
rZED4362170604a8: Read credentials and config from environment
Branches
Unknown
Tags
Unknown