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

@@ -64,10 +64,10 @@ class Controller_Task_Host extends Controller_Task {
// Limit to show only those by the requested category.
if ($cats) {
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)))
continue;