[Notice] Trying to get property of non-object

GET /en/editoriali/

Line 25 in /ha/web/web/illustrati.logosedizioni.it/www/mysite/code/EditorialePage.php

Source

16 	    return $fields;
17 	}
18 
19 	public function getAllEditoriali() {
20 		$ed = ArticoloPage::get()->filter('Editoriale',true);
21 		$result = array();
22 		$result_arr = new ArrayList();
23 		foreach ($ed as $key => $value) {
24 			$padre = DataObject::get_by_id('NumeroPage',$value->ParentID);
25 			$result[$padre->Numero][] = $value;
26 		}
27 		ksort($result,1);
28 		$result = array_reverse($result);
29 		foreach ($result as $key => $value) {
30 			foreach ($value as $key2 => $value2) {
31 				$result_arr->push($value2);

Trace

#ILLUSTRATI | Editoriali