[Notice] Trying to get property of non-object

GET /workplace/item/1080/Waldhotel+National

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

Source

642         $id = $params['ID'];
643         
644         if (!isset($id)) {
645             $this->redirect($this->Link());
646             
647             return false;
648         }
649         $workplace = DataObject::get_by_id('Workplace', $id);
650         
651         return $this->customise(new ArrayData(['Title' => $workplace->Title, 'Workplace' => $workplace, 'IsWorkplaceView' => true]))->renderWith(['Workplace', 'Page']);
652     }
653     
654     public function countLiveWorkplaces()
655     {
656         if ($this->ClassName == 'WorkplaceHolder') {
657             $holder = $this;

Trace

» Great Place to Work Switzerland

 
+41 43 817 65 67
© Great Place To Work® Institute. All Rights Reserved.
made with by CIC