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

PHP8 Fixes and shortcode tests for chatbox_menu, download, faqs, forum and forum-post

This commit is contained in:
Cameron
2021-01-07 09:42:19 -08:00
parent 4e6347ff1b
commit 3d19db894b
8 changed files with 713 additions and 201 deletions

View File

@@ -55,7 +55,7 @@
* @param string $parm
* @return string page navigation bar HTML
*/
function nextprev_shortcode($parm = '')
function nextprev_shortcode($parm = null)
{
$e107 = e107::getInstance();
$pref = e107::getPref();
@@ -76,7 +76,7 @@ function nextprev_shortcode($parm = '')
}
// Calculate
$total_items = intval($parm['total']);
$total_items = isset($parm['total']) ? (int) $parm['total'] : 0;
if(empty($total_items))
{