[Notice] Trying to get property of non-object

GET /in-veldhoven/activiteit/heropening-speellandschap-de-heiberg?l=en_GB

Line 29 in /var/www/vhosts/vvv-veldhoven.nl/httpdocs/mysite/code/Controllers/VeldhovenController.php

Source

20 		}
21 	}
22 	
23 	public function activiteit($arguments) {
24 		Requirements::css("themes/vvvveldhoven/css/Rood.css");
25 		$params = $arguments->AllParams();
26 		if ($params["ID"] != "") {
27 			$evenement = Evenement::get()->filter("URLSegment", $params["ID"])->First();
28 			$data = array(
29 				"Title" => $evenement->Title,
30 				"Evenement" => $evenement,
31 				"Kleur" => "Rood"
32 			);
33 			return $this->customise($data)->renderWith(array('Evenement', 'Page'));	
34 		}
35 	}

Trace

- VVV Veldhoven

VVV Veldhoven

Meiveld 2, 5501 KA Veldhoven T. (040) 253 29 01 info@vvv-veldhoven.nl