Issue Bug Closed

#98387PHP Warning: Undefined array key "XYZ" in File line 184

Daniel Siepmann 09/21/22, 07:05 updated 10/04/22, 08:54

Description

Update none existing properties of a file.
There is a missing check if key exists.

        foreach ($properties as $key => $value) {
            if ($this->properties[$key] !== $value) {
                if (!in_array($key, $this->updatedProperties)) {
                    $this->updatedProperties[] = $key;
                }
                $this->properties[$key] = $value;
            }
        }

Reviews 2