Skip to content

Commit

Permalink
fixes index post filter
Browse files Browse the repository at this point in the history
  • Loading branch information
srexi committed Jun 18, 2020
1 parent 04b6e42 commit d10e9b2
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions inc/plugins/rexshop.php
Original file line number Diff line number Diff line change
Expand Up @@ -221,9 +221,9 @@ function rexshop_payment_page()
continue;
}

$product['prices'] = array_filter($product['prices'], function ($price) use ($mybb) {
$product['prices'] = array_values(array_filter($product['prices'], function ($price) use ($mybb) {
return $price['plan_id'] == $mybb->input['plan_id'];
});
}));

$selectedProduct = $product;
break;
Expand Down Expand Up @@ -857,9 +857,9 @@ function rexshop_admin()
continue;
}

$product['prices'] = array_filter($product['prices'], function ($price) use ($mybb) {
$product['prices'] = array_values(array_filter($product['prices'], function ($price) use ($mybb) {
return $price['plan_id'] == $mybb->input['plan_id'];
});
}));

$selectedProduct = $product;
break;
Expand Down

0 comments on commit d10e9b2

Please sign in to comment.