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

@@ -55,7 +55,7 @@ class Controller_Product extends Controller_TemplateDefault {
$co = ORM::factory('product_category',$_GET['cid']);
// If the product category doesnt exist, or doesnt match the product
if (! $co->loaded() OR ! in_array($co->id,unserialize($po->avail_category_id)))
if (! $co->loaded() OR ! in_array($co->id,unserialize($po->avail_category)))
Request::current()->redirect('product_category/index');
Breadcrumb::name('product/view',$co->name);