Skip to content

Commit

Permalink
re-fix page trying to display redundant store which causes undefined …
Browse files Browse the repository at this point in the history
…offset error
  • Loading branch information
rider3458 committed May 24, 2021
1 parent ff46371 commit 3a7ab69
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions private/browse.php
Original file line number Diff line number Diff line change
Expand Up @@ -39,8 +39,10 @@ function each_page($stores, $max_cards) {
if ($max > $list_length) {
$max = $list_length - 1;
}
for ($i = $min; $i < $max; $i++) {
display_store($stores[$i]["store_name"],$stores[$i]["store_id"]);
for ($i = $min; $i <= $max; $i++) {
if (isset($stores[$i])) {
display_store($stores[$i]["store_name"],$stores[$i]["store_id"]);
}
}

}
Expand Down

0 comments on commit 3a7ab69

Please sign in to comment.