1
0
mirror of https://github.com/e107inc/e107.git synced 2025-08-26 07:44:49 +02:00

Fix all PHP 8.0 test failures

This commit is contained in:
Nick Liu
2020-11-27 17:00:32 +01:00
parent 072c1b3a90
commit f256b924ce
21 changed files with 103 additions and 34 deletions

View File

@@ -2271,7 +2271,7 @@ class e107forum
* $forum_href override ONLY applies when template is missing FORUM_CRUMB
* $thread_title is needed for post-related breadcrumbs
*/
function set_crumb($forum_href=false, $thread_title='', &$templateVar)
function set_crumb($forum_href=false, $thread_title='', &$templateVar=null)
{
$tp = e107::getParser();

View File

@@ -857,7 +857,7 @@ class siteStats
if ($do_errors XOR !$found)
{
$totalArray[$k] = $v;
$total += vartrue($v['ttlv']);
$total += (int) vartrue($v['ttlv']);
}
}
$totalArray = $this -> arraySort($totalArray, "ttl");
@@ -2037,7 +2037,7 @@ class siteStats
$text .= "
</td>
<td style='width:10%; text-align:right' class='forumheader3'>".number_format($val);
<td style='width:10%; text-align:right' class='forumheader3'>".number_format((float) $val);
return $text;
}