Homestyx hydra
Diffusion hydra c1d86da5b209

Initialize $cache_key variable in CelerityResourceController.php

Description

Initialize $cache_key variable in CelerityResourceController.php

Summary:
$cache_key is unconditionally called in $cache->setKey($cache_key, $data) but is only defined if the previous condition if ($is_cacheable && $is_locally_cacheable && !$dev_mode) was true.
Thus initialize the variable to avoid a theoretical exception. (No additional null check is needed as $cache gets defined in the same condition.)

Test Plan: Carefully read the code.

Reviewers: O1 Blessed Committers, valerio.bozzolan

Reviewed By: O1 Blessed Committers, valerio.bozzolan

Subscribers: tobiaswiese, valerio.bozzolan, Matthew, Cigaryno

Differential Revision: https://we.phorge.it/D25642

Details

Provenance
Andre KlapperAuthored on May 16 2024, 5:45 AM
sirocylPushed on Oct 16 2024, 5:49 AM
Parents
R1:10cb2521630a: Fix PHP 8.1 exceptions importing ICS file without attendee names
Branches
Unknown
Tags
Unknown

Event Timeline