[TikiWiki-commits] [Git][tikiwiki/tiki][master] [FIX] Tiki-register: Fix TypeError in tracker plugin when action parameter is a string

Benoit Grégoire (@benoitg) via TikiWiki-cvs <[email protected]>
Newsgroups gmane.comp.cms.tiki.cvs
Message-ID <697d181df27f5_3b1177e78378b3@gitlab-sidekiq-low-urgency-cpu-bound-v2-6ccf9f486c-252vj.mail>

Benoit Grégoire pushed to branch master at Tiki Wiki CMS Groupware / Tiki


Commits:
e2669388 by Espoir Baraka at 2026-01-30T20:35:28+00:00
[FIX] Tiki-register: Fix TypeError in tracker plugin when action parameter is a string
---
* [FIX] Tiki-register: Fix TypeError in tracker plugin when action parameter is a string

See merge request tikiwiki/tiki!9424

- - - - -


1 changed file:

- lib/parser/parserlib.php


Changes:

=====================================
lib/parser/parserlib.php
=====================================
@@ -146,6 +146,8 @@ class ParserLib extends TikiDb_Bridge
         $params = WikiPlugin_Helper::applyParamsDefaults($params, $info);
 
         $missingRequired = [];
+        $tikilib = TikiLib::lib('tiki');
+
         if (isset($info['params'])) {
             foreach ($info['params'] as $key => $param) {
                 if (isset($param['required']) && $param['required'] === true) {
@@ -154,6 +156,14 @@ class ParserLib extends TikiDb_Bridge
                         $missingRequired[] = $key;
                     }
                 }
+
+                if (isset($param['separator']) && isset($params[$key])) {
+                    if (is_string($params[$key]) && $params[$key] !== null) {
+                        $params[$key] = $tikilib->multi_explode($param['separator'], $params[$key]);
+                    } elseif (! is_array($params[$key]) && $params[$key] !== null) {
+                        $params[$key] = [$params[$key]];
+                    }
+                }
             }
         }
 



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

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