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:
@@ -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();
|
||||
|
@@ -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;
|
||||
}
|
||||
|
Reference in New Issue
Block a user