[Notice] Trying to get property of non-object

GET /workplace/item/240/GWS+Gesellschaft+f%C3%BCr+Warenwirtschafts-Systeme+mbH

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

Source

577 		$params = $params->allParams();
578 		$id = $params['ID'];
579 
580 		if(!isset($id)){
581 			$this->redirect($this->Link());
582 			return false;
583 
584 		}
585 		$workplace = DataObject::get_by_id('Workplace', $id);
586 		return $this->customise(new ArrayData(array('Title' => $workplace->Title, 'Workplace' => $workplace, 'IsWorkplaceView' => true)))->renderWith(array('Workplace', 'Page'));
587 	}
588 
589 
590 	public function countLiveWorkplaces(){
591 		if($this->ClassName == 'WorkplaceHolder') {
592 			$holder = $this;

Trace

» Great Place to Work Deutschland

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