Minor fixes to ssl and core
This commit is contained in:
@@ -89,7 +89,7 @@ class Model_Product extends ORMOSB {
|
||||
// Work out the best price for the user
|
||||
$price = array();
|
||||
foreach (unserialize($this->price_group) as $bill_freq => $pg) {
|
||||
if ($pg['show'])
|
||||
if (isset($pg['show']) AND $pg['show'])
|
||||
foreach ($groups as $gid) {
|
||||
if (! empty($pg[$gid])) {
|
||||
if (empty($price[$bill_freq]['price_base'])
|
||||
@@ -101,7 +101,8 @@ class Model_Product extends ORMOSB {
|
||||
}
|
||||
}
|
||||
|
||||
return $price;
|
||||
// @todo Ugly hack
|
||||
return $price ? $price : array('0'=>array('price_base'=>0,'price_setup'=>0));
|
||||
}
|
||||
|
||||
/**
|
||||
|
Reference in New Issue
Block a user