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

Code cleanup

This commit is contained in:
Cameron
2020-12-05 14:13:18 -08:00
parent d37d4bf8af
commit 09fb747374
30 changed files with 125 additions and 89 deletions

View File

@@ -440,7 +440,8 @@ function nextprev_shortcode($parm = '')
else // new - page support in format 'p:1'
{
$perpage = 1;
$current_start = intval(array_pop(explode(':', $p[2], 2)));
$exp = explode(':', $p[2], 2);
$current_start = intval(array_pop($exp));
$current_page = $current_start;
$total_pages = $total_items;
$index_add = 1;