Commit d73c585d authored by Mario's avatar Mario

Merge branch 'dev' into 'dev'

Fix manual catalog items cannot be made unavailable for purchase

See merge request hubzilla/addons!148
parents 86c5b34c 657d0216
......@@ -111,7 +111,7 @@ class Cart_manualcat {
$itemlist = Cart_manualcat::get_itemlist();
foreach ($itemlist as $item) {
$skudata=Cart_manualcat::get_item($item);
if (!isset($skudata["item_active"])) {
if (!isset($skudata["item_active"]) || $skudata["item_active"] == 0 ) {
unset($catalog[$item]);
}
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment