[TikiWiki-commits] [Git][tikiwiki/tiki][29.x] [BP][FIX] Trackerlib warning array to string conversion

"Baraka Kinywa \(@bkinywa24\) via TikiWiki-cvs" <[email protected]>
Newsgroups gmane.comp.cms.tiki.cvs
Message-ID <692720f459536_2a563e0c66624@gitlab-sidekiq-low-urgency-cpu-bound-v2-95768d668-bjg55.mail>

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


Commits:
dcce0a57 by David Maene at 2025-11-26T17:39:02+02:00
[BP][FIX] Trackerlib warning array to string conversion
---
* [FIX] Trackerlib warning array to string conversion
---
* [FIX] prevent Array to string conversion warning in trackerlib.php

See merge request tikiwiki/tiki!9035

See merge request tikiwiki/tiki!9111

- - - - -


1 changed file:

- lib/trackers/trackerlib.php


Changes:

=====================================
lib/trackers/trackerlib.php
=====================================
@@ -4146,7 +4146,8 @@ class TrackerLib extends TikiLib
                 if (isset($param['options'])) {
                     $text .= "<dd><ul>";
                     foreach ($param['options'] as $k => $label) {
-                        $text .= "<li><strong>{$k}</strong> = <em>$label</em></li>";
+                        $label = is_array($label) ? implode(', ', $label) : $label;
+                        $text .= "<li><strong>{$k}</strong> = <em>{$label}</em></li>";
                     }
                     $text .= "</ul></dd>";
                 }



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

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