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

APPPATH/views/frontend/news/view.php [ 53 ]

48         </div>
49 
50         <div class="row" style="margin-top: 10px;">
51           <div class="span8">
52             <? foreach (ORM::factory('Cnews')->where('id_news', '=', $item->id)->find_all() as $value): ?>
53               <table class="table_comment <?php if (User::get_user()->id == $value->id_user) echo 'comment_green'; ?>">
54                 <tr>
55                   <td>
56                     <span class="comment_name"><?= $value->last_name ?> <?= $value->first_name ?></span>
57                     <span class="comment_date"><?= $value->date ?></span>
58                     <span ><a href="#" class="reply" data="<?= $value->last_name ?> <?= $value->first_name ?>">Ответить</a></span>
  1. APPPATH/views/frontend/news/view.php [ 53 ] » Kohana_Core::error_handler(arguments)

  2. SYSPATH/classes/Kohana/View.php [ 61 ] » include(arguments)

  3. SYSPATH/classes/Kohana/View.php [ 348 ] » Kohana_View::capture(arguments)

  4. SYSPATH/classes/Kohana/View.php [ 228 ] » Kohana_View->render()

  5. SYSPATH/classes/Kohana/Response.php [ 160 ] » Kohana_View->__toString()

  6. APPPATH/classes/Controller/Frontend/News.php [ 82 ] » Kohana_Response->body(arguments)

  7. SYSPATH/classes/Kohana/Controller.php [ 84 ] » Controller_Frontend_News->action_view()

  8. {PHP internal call} » Kohana_Controller->execute()

  9. SYSPATH/classes/Kohana/Request/Client/Internal.php [ 97 ] » ReflectionMethod->invoke(arguments)

  10. SYSPATH/classes/Kohana/Request/Client.php [ 114 ] » Kohana_Request_Client_Internal->execute_request(arguments)

  11. SYSPATH/classes/Kohana/Request.php [ 990 ] » Kohana_Request_Client->execute(arguments)

  12. DOCROOT/index.php [ 118 ] » Kohana_Request->execute()

Environment