Minor DB updates

This commit is contained in:
Deon George
2011-12-27 12:06:04 +11:00
parent fe317b9cb0
commit 6f1d0d749c
6 changed files with 23 additions and 26 deletions

View File

@@ -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);
}