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

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


Commits:
98ba2f51 by Jonny Bradley at 2025-10-20T14:34:04+00:00
[FIX] cache: Fix notices (seen while importing tracker data)


(cherry picked from commit 16e34f900a235eb57c1cc54abb66b798fa5accbf)

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


1 changed file:

- lib/cache/cachelib.php


Changes:

=====================================
lib/cache/cachelib.php
=====================================
@@ -499,7 +499,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/98ba2f5133cdaf7b4e7a6b437effc867d3b3c001

-- 
View it on GitLab: https://gitlab.com/tikiwiki/tiki/-/commit/98ba2f5133cdaf7b4e7a6b437effc867d3b3c001
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.