[TikiWiki-commits] [Git][tikiwiki/tiki][27.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 <68f648873a1f6_2ce0ee819352@gitlab-sidekiq-low-urgency-cpu-bound-v2-6855f58d74-vdslw.mail>

Jonny Bradley pushed to branch 27.x at Tiki Wiki CMS Groupware / Tiki


Commits:
da2fea8a by Jonny Bradley at 2025-10-20T14:34:43+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]>

(cherry picked from commit a900a786a88116ff18395c376f4358d415a61186)

Co-authored-by: Jonny Bradley <[email protected]>
- - - - -


1 changed file:

- lib/cache/cachelib.php


Changes:

=====================================
lib/cache/cachelib.php
=====================================
@@ -502,7 +502,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/da2fea8a135e748e988814ef9f910fa2fce86b00

-- 
View it on GitLab: https://gitlab.com/tikiwiki/tiki/-/commit/da2fea8a135e748e988814ef9f910fa2fce86b00
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
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.