Skip to content

Commit aebfb43

Browse files
committed
Update calls to join following signature change
Since PHP 8.0, calls to join() no longer support passing the array followed by the the separator.
1 parent 155e302 commit aebfb43

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

web/stats.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,7 @@
5757
if (!$got_year) {
5858
template_show_error("We don’t have statistics for that year");
5959
}
60-
$year_bar = "<p>Statistics for other years:</p><ul class=\"inline-list\"><li>" . join($year_bar_array, "</li><li>") . "</li></ul>";
60+
$year_bar = "<p>Statistics for other years:</p><ul class=\"inline-list\"><li>" . join("</li><li>", $year_bar_array) . "</li></ul>";
6161
#if (!get_http_var('really'))
6262
# $year_bar = "";
6363

@@ -79,7 +79,7 @@
7979
$navigation_tabs_array[] = '<a href="/stats/' . $year . '/' . $navigation_tab[0] . '">' . $html . '</a>';
8080
}
8181
}
82-
$navigation_tabs = '<ul class="inline-list" role="navigation"><li>' . join($navigation_tabs_array, "</li><li>") . '</li></ul>';
82+
$navigation_tabs = '<ul class="inline-list" role="navigation"><li>' . join("</li><li>", $navigation_tabs_array) . '</li></ul>';
8383

8484
require_once "../phplib/summary_report_${year}.php";
8585
require_once "../phplib/questionnaire_report_${year}_WMC.php";

0 commit comments

Comments
 (0)