[Notice] Trying to get property of non-object

GET /workplace/item/1128/Waldhotel+National

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

Source

831         $id = $params['ID'];
832         
833         if (!isset($id)) {
834             $this->redirect($this->Link());
835             
836             return false;
837         }
838         $workplace = DataObject::get_by_id('Workplace', $id);
839         
840         return $this->customise(new ArrayData(['Title' => $workplace->Title, 'Workplace' => $workplace, 'IsWorkplaceView' => true]))->renderWith(['Workplace', 'Page']);
841     }
842     
843     /**
844      * @return mixed
845      */
846     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