[TikiWiki-commits] [Git][tikiwiki/tiki][master] [FIX] Fix deprecated warning: prevent null passed to explode()

"Bruno Kambere \(@kambereBr\) via TikiWiki-cvs" <[email protected]>
Newsgroups gmane.comp.cms.tiki.cvs
Message-ID <68ece22c23ce5_2c54da4446341@gitlab-sidekiq-low-urgency-cpu-bound-v2-fb867db47-69ccq.mail>

Bruno Kambere pushed to branch master at Tiki Wiki CMS Groupware / Tiki


Commits:
2d128059 by Yves Ngalamulume at 2025-10-13T14:19:52+03:00
[FIX] Fix deprecated warning: prevent null passed to explode()
---
* [FIX] Fix deprecated warning: prevent null passed to explode() in Filter.php

See merge request tikiwiki/tiki!8758

- - - - -


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/2d128059e376faec94a88a17bf500577d1346dc1

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