[Notice] Trying to get property of non-object

GET /workplace/item/858/Dr.+Schmid+Zahn%C3%A4rzte

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®

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