1
0
mirror of https://github.com/e107inc/e107.git synced 2025-07-31 03:40:37 +02:00

Notice removal nextprev.

This commit is contained in:
Cameron
2017-02-06 11:24:21 -08:00
parent 37c18e822e
commit bd6400d1bf

View File

@@ -68,9 +68,12 @@ function nextprev_shortcode($parm = '')
* New parameter requirements formatted as a GET string.
* Template support.
*/
if(strpos($parm, 'total=') !== false)
if(is_array($parm) || strpos($parm, 'total=') !== false)
{
parse_str($parm, $parm);
if(is_string($parm))
{
parse_str($parm, $parm);
}
// Calculate
$total_items = intval($parm['total']);