[Notice] Trying to get property of non-object

GET /workplace/item/1177/Waldhotel+National

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

Source

841         $id = $params['ID'];
842 
843         if (!isset($id)) {
844             $this->redirect($this->Link());
845 
846             return false;
847         }
848         $workplace = DataObject::get_by_id('Workplace', $id);
849 
850         return $this->customise(new ArrayData(['Title' => $workplace->Title, 'Workplace' => $workplace, 'IsWorkplaceView' => true]))->renderWith(['Workplace', 'Page']);
851     }
852 
853     /**
854      * @return mixed
855      */
856     public function countLiveWorkplaces()

Trace

» Great Place to Work Switzerland

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