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