[Notice] Trying to get property of non-object

GET /listen/archive2.php?showid=32&hostid=10&file=Bluegrass_Etc&date=20160424

Line 108 in /var/www/html/mysite/code/controller/Player_controller.php

Source

99 				$show_id = intval($_GET['showid']);
100                 $showdate = date('F j, Y-j-F', $date);
101 				$show = Program_external::getShowDetailsByID($show_id)->first();
102                 $playlist = Program_external::getPlaylistDetailsByID($show_id, $_GET['date'] )->first();
103                 //debug::show($playlist);
104                 //debug::show($showdate);
105                 //die();
106 				$output->title = $playlist->ShowName;
107 				$output->action = 'with ' . $playlist->HostName;
108 				$output->image = $show->url_image_sm;
109 
110 				if($date) {
111 					$output->date .= 'Archive from '.date('F j, Y', $date).'';
112 				}
113                 //debug::show('...');
114 			}

Trace

- The SoCal Sound | Southern California Radio
Bluegrass Etcetera with Frank Hoppe
Archive from April 24, 2016
88.5 FM" class="img-fluid" width="125">