Commit 6315c205 authored by Artem Malichev's avatar Artem Malichev

Minor fix.

parent 9a960b2b
......@@ -184,8 +184,9 @@ class iaProduct extends abstractModuleFront
$currency = $iaCurrency->get();
foreach ($rows as $key => &$row) {
if (iaUsers::hasIdentity() && $row['status'] == iaProduct::STATUS_HIDDEN && iaUsers::getIdentity()->id !== $row['member_id']) {
unset($rows[$key]); continue;
if (iaUsers::hasIdentity() && $row['status'] == iaProduct::STATUS_HIDDEN && iaUsers::getIdentity()->id !== $row['member_id'] || !iaUsers::hasIdentity() && $row['status'] == iaProduct::STATUS_HIDDEN) {
unset($rows[$key]);
continue;
}
$row['price_formatted'] = $iaCurrency->format($row['price']);
$row['currency'] = $currency;
......
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