[Notice] Trying to get property of non-object

GET /workplace/item/279/PATRIZIA+Immobilien+AG

Line 599 in /usr/www/users/gptwfl/gptw-live/mysite/code/Page.php

Source

590 		$params = $params->allParams();
591 		$id = $params['ID'];
592 
593 		if(!isset($id)){
594 			$this->redirect($this->Link());
595 			return false;
596 
597 		}
598 		$workplace = DataObject::get_by_id('Workplace', $id);
599 		return $this->customise(new ArrayData(array('Title' => $workplace->Title, 'Workplace' => $workplace, 'IsWorkplaceView' => true)))->renderWith(array('Workplace', 'Page'));
600 	}
601 
602 
603 	public function countLiveWorkplaces(){
604 		if($this->ClassName == 'WorkplaceHolder') {
605 			$holder = $this;

Trace

» Great Place to Work®

 
+49 221 / 93 335 - 0
© Great Place To Work® Institute. All Rights Reserved.
made with by CIC