Trying to get property of non-object
| Document | Product | 
|---|---|
| Document type | CMS page | 
| Line | 3 | 
| Exception class | Cms_ExecutionException | 
<?php
$redirect = true;
foreach($product->category_list as $category)
{
	if($category->code == "general" || $category->code == "bethany")
	{
		$redirect = false;
	}
 
	$password = Db_DbHelper::object("select * from cat_password where catid='{$category->id}'");
 
	if(isset($_SESSION['group-logged-into']))
	{
| # | Document | Type | 
|---|---|---|
| 1 | Product | CMS page |