Skip to content

Commit

Permalink
fixed page count if only 1 page exists
Browse files Browse the repository at this point in the history
  • Loading branch information
doitlikejustin committed Aug 9, 2013
1 parent 9bbf0c9 commit 2b0d79e
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/wishlist.php
Original file line number Diff line number Diff line change
Expand Up @@ -47,6 +47,9 @@
//get all pages
$pages = count(pq('.pagDiv .pagPage'));

//if no "$pages" then only 1 page exists
if(empty($pages)) $pages=1;

for($page_num=1; $page_num<=$pages; $page_num++)
{

Expand Down

0 comments on commit 2b0d79e

Please sign in to comment.