Minor DB updates
This commit is contained in:
@@ -134,10 +134,10 @@ class Model_Service extends ORMOSB {
|
||||
$cats = ORM::factory('product_category')->list_bylistgroup($cat);
|
||||
|
||||
foreach ($this->list_active() as $so) {
|
||||
if (! $so->product->avail_category_id OR ! preg_match('/^a:/',$so->product->avail_category_id))
|
||||
if (! $so->product->avail_category OR ! preg_match('/^a:/',$so->product->avail_category))
|
||||
continue;
|
||||
|
||||
$pc = unserialize($so->product->avail_category_id);
|
||||
$pc = unserialize($so->product->avail_category);
|
||||
if (array_intersect($pc,array_keys($cats)))
|
||||
array_push($result,$so);
|
||||
}
|
||||
|
Reference in New Issue
Block a user