[ Notice ]: Undefined index: type

APPPATH/classes/boxes/creator.php [ 82 ]

77         $this->motive_id    = Request::current()->param('motive_id');
78         $this->cid    = Request::current()->param('cid');
79 
80         $lib = new Model_Motives($this->motive_id);
81         $photo = $lib->getData();
82         if ($photo['type'] == 'gallery') {
83             $photo['photo_image_large'] = URL::base(Tools::getCurrentProtocol()).substr($photo['photo_image_large'],1); 
84         }
85         
86         $photo['descr'] = json_decode($photo['descr'],true);
87         $photo['descr'] = @$photo['descr'][$this->main['cid']];
  1. APPPATH/classes/boxes/creator.php [ 82 ] » Kohana_Core::error_handler(arguments)

  2. MODPATH/webpage/classes/boxes.php [ 120 ] » Boxes_Creator->get()

  3. MODPATH/webpage/classes/controller/webpage.php [ 106 ] » Boxes->getData()

  4. MODPATH/webpage/classes/controller/webpage.php [ 154 ] » Controller_Webpage->parse()

  5. {PHP internal call} » Controller_Webpage->action_index()

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

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

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

  9. /index.php [ 105 ] » Kohana_Request->execute()

Environment