[TikiWiki-commits] [Git][tikiwiki/tiki][master] [FIX] Trackerlib warning array to string conversion
"ushindi bienvenu \(@usbbush\) via TikiWiki-cvs" <[email protected]>
| Newsgroups | gmane.comp.cms.tiki.cvs |
|---|---|
| Message-ID | <69236a7ce9ffd_2a17f16070539@gitlab-sidekiq-low-urgency-cpu-bound-v2-5d57c968f-hq85l.mail> |
ushindi bienvenu pushed to branch master at Tiki Wiki CMS Groupware / Tiki
Commits:
8a2ab48f by David Maene at 2025-11-23T20:03:42+00:00
[FIX] Trackerlib warning array to string conversion
---
* [FIX] prevent Array to string conversion warning in trackerlib.php
See merge request tikiwiki/tiki!9035
- - - - -
1 changed file:
- lib/trackers/trackerlib.php
Changes:
=====================================
lib/trackers/trackerlib.php
=====================================
@@ -4046,7 +4046,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/8a2ab48f037809e52576b0a35f6b558055175dd0
--
View it on GitLab: https://gitlab.com/tikiwiki/tiki/-/commit/8a2ab48f037809e52576b0a35f6b558055175dd0
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