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

APPPATH/views/FunStuff/videos.php [ 30 ]

25 <div class="funstuff container">
26 	<div class="video_player">
27 		<div class="frame">
28 			<iframe name="video-player" width="833" height="456" src="<?php echo URL::site("fun-stuff/videos/placeholder"); ?>" frameborder="0" allowfullscreen=""></iframe>
29 		</div>
30 		<h2><?php if($videos) { $first_video = $videos[0]; echo $first_video->name; } ?></h2>
31 	</div>
32 	<ul class="video-thumbs">
33 	<?php foreach($videos as $video) { ?>
34 		<li>
35 		<a target="video-player" class="frame" href="<?php echo URL::site("fun-stuff/videos/{$video->id}"); ?>">
  1. APPPATH/views/FunStuff/videos.php [ 30 ] » 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. APPPATH/views/site-index.php [ 14 ] » Kohana_View->__toString()

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

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

  8. SYSPATH/classes/Kohana/Controller/Template.php [ 44 ] » Kohana_View->render()

  9. APPPATH/classes/Controller/Default.php [ 46 ] » Kohana_Controller_Template->after()

  10. SYSPATH/classes/Kohana/Controller.php [ 87 ] » Controller_Default->after()

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

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

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

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

  15. DOCROOT/index.php [ 119 ] » Kohana_Request->execute()

Environment