~cyborg/michelangelo

ef03f1b7e5c0c04f8f94488b947fc8610b22ac44 — cyborg 9 months ago b777b0a
fix error when pulling page number from URL
1 files changed, 3 insertions(+), 2 deletions(-)

M index.php
M index.php => index.php +3 -2
@@ 202,8 202,9 @@ function gallery($params=null) {
    }

    // Get current page number & calculate posts to request
    if (!is_null($params) && is_numeric(substr($params[0], 0, 2))) {
        $page = substr($params[0], 0, 2);
    $page_num = (int)substr($params[0], 0, 2)
    if (!is_null($params) && is_numeric($page_num)) {
        $page = $page_num;
        echo $dir;
    } else {
        $page = 1;