[TikiWiki-commits] [Git][tikiwiki/tiki][28.x] [FIX] cache: Fix notices (seen while importing tracker data)
"Jonny Bradley \(@jonnybradley\) via TikiWiki-cvs" <[email protected]>
| Newsgroups | gmane.comp.cms.tiki.cvs |
|---|---|
| Message-ID | <68f6487879965_2ce0ee8405ca@gitlab-sidekiq-low-urgency-cpu-bound-v2-6855f58d74-s2tw7.mail> |
Jonny Bradley pushed to branch 28.x at Tiki Wiki CMS Groupware / Tiki Commits: a900a786 by Jonny Bradley at 2025-10-20T14:34:24+00:00 [FIX] cache: Fix notices (seen while importing tracker data) (cherry picked from commit 16e34f900a235eb57c1cc54abb66b798fa5accbf) Co-authored-by: Jonny Bradley <[email protected]> (cherry picked from commit 98ba2f5133cdaf7b4e7a6b437effc867d3b3c001) Co-authored-by: Jonny Bradley <[email protected]> - - - - - 1 changed file: - lib/cache/cachelib.php Changes: ===================================== lib/cache/cachelib.php ===================================== @@ -503,7 +503,7 @@ class Cachelib public function invalidate_by_cache_purge_rules($args) { // First get all candidates which match type (source_itemId does not matter for now - see below) - $cache_purge_rules = $this->get_cache_purge_rules($args['type']); + $cache_purge_rules = $this->get_cache_purge_rules($args['type']) ?? []; foreach ($cache_purge_rules as $c) { if ($c['source_itemId'] == $args['object'] || $c['source_itemId'] == 0) { View it on GitLab: https://gitlab.com/tikiwiki/tiki/-/commit/a900a786a88116ff18395c376f4358d415a61186 -- View it on GitLab: https://gitlab.com/tikiwiki/tiki/-/commit/a900a786a88116ff18395c376f4358d415a61186 You're receiving this email because of your account on gitlab.com. _______________________________________________ TikiWiki-cvs mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/tikiwiki-cvs