ErrorException [ Notice ]: Trying to get property of non-object

APPPATH/classes/controller/products.php [ 132 ]

127         foreach ($structure->active as $a) {
128             $n->add($structure->perid[$a]['name'], '/products/category/' . $a);
129         }
130 
131         $data['nav'] = '<img src="/images/navpoint.png" alt="" class="navarrow" />' . $n->leftnav('<img src="/images/navarrow.png" alt="" class="navarrow" />');
132         if ($pro[0]->view) {
133             $this->template->content = View::factory('products_collectionx', $data);
134         } else {
135             $this->template->content = View::factory('products_collection', $data);
136         }
137     }
  1. APPPATH/classes/controller/products.php [ 132 ] » Kohana_Core::error_handler(arguments)

  2. {PHP internal call} » Controller_Products->action_collection()

  3. SYSPATH/classes/kohana/request/client/internal.php [ 118 ] » ReflectionMethod->invoke(arguments)

  4. SYSPATH/classes/kohana/request/client.php [ 64 ] » Kohana_Request_Client_Internal->execute_request(arguments)

  5. SYSPATH/classes/kohana/request.php [ 1138 ] » Kohana_Request_Client->execute(arguments)

  6. /index.php [ 127 ] » Kohana_Request->execute()

Environment