[Notice] Trying to get property of non-object

GET /autore/articoli/4136

Line 84 in /ha/web/web/illustrati.logosedizioni.it/www/mysite/code/AutorePage.php

Source

75 
76 	public function getArticoliAutore() {
77 		$req = Controller::curr()->getRequest()->params();
78 		$id = $req['ID'];
79 		$autore = DataObject::get_by_id('Autore',$id);
80 		$result = array();
81 		$result_arr = new ArrayList();
82 		foreach ($autore->Articolo() as $key => $value) {
83 			$padre = DataObject::get_by_id('NumeroPage',$value->ParentID);
84 			$result[$padre->Numero][] = $value;
85 		}
86 		ksort($result,1);
87 		$result = array_reverse($result);
88 		foreach ($result as $key => $value) {
89 			foreach ($value as $key2 => $value2) {
90 				$result_arr->push($value2);

Trace

#ILLUSTRATI | Daniela Liviello