From 15e8626f025388ccc9ff562b64d5550936f50ea4 Mon Sep 17 00:00:00 2001 From: umorigu Date: Sat, 27 Nov 2021 17:40:15 +0900 Subject: [PATCH] BugTrack/2514 PHP8: tracker plugin now works --- plugin/tracker.inc.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/plugin/tracker.inc.php b/plugin/tracker.inc.php index 9b1cd10..085c8e7 100644 --- a/plugin/tracker.inc.php +++ b/plugin/tracker.inc.php @@ -181,7 +181,7 @@ function plugin_tracker_action() } $postdata[$num] = str_replace( "[$key]", - ($postdata[$num]{0} == '|' or $postdata[$num]{0} == ':') ? + ($postdata[$num][0] == '|' or $postdata[$num][0] == ':') ? str_replace('|','|',$value) : $value, $postdata[$num] ); -- 2.11.0