[TikiWiki-commits] [Git][tikiwiki/tiki][29.x] [BP][FIX] Fix deprecated warning: prevent null passed to explode() in Filter.php

"Baraka Kinywa \(@bkinywa24\) via TikiWiki-cvs" <[email protected]>
Newsgroups gmane.comp.cms.tiki.cvs
Message-ID <68f7c69a419e9_2c28bf2c78198@gitlab-sidekiq-low-urgency-cpu-bound-v2-d6f4b755c-wgw5r.mail>

Baraka Kinywa pushed to branch 29.x at Tiki Wiki CMS Groupware / Tiki


Commits:
3bba4e1b by Yves Ngalamulume at 2025-10-21T20:38:38+03:00
[BP][FIX] Fix deprecated warning: prevent null passed to explode() in Filter.php
---
* [FIX] Fix deprecated warning: prevent null passed to explode() in Filter.php

See merge request tikiwiki/tiki!8829

- - - - -


1 changed file:

- lib/smarty_tiki/BlockHandler/Filter.php


Changes:

=====================================
lib/smarty_tiki/BlockHandler/Filter.php
=====================================
@@ -58,7 +58,7 @@ class Filter extends Base
         // Categories
         if ($prefs['feature_categories'] == 'y' && $prefs['search_show_category_filter'] == 'y') {
             $smarty->assign('filter_deep', $filter->offsetExists('deep'));
-            $smarty->assign('filter_categories', explode(' ', $filter->categories->wordspace()));
+            $smarty->assign('filter_categories', explode(' ', $filter->categories->wordspace() ?? ''));
 
             $categlib = \TikiLib::lib('categ');
             $ctall = $categlib->getCategories();



View it on GitLab: https://gitlab.com/tikiwiki/tiki/-/commit/3bba4e1b5bf9157232b198c23819612c3f29cf6f

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