diff --git a/app/lib/Parsers/DisplayTemplateParser.php b/app/lib/Parsers/DisplayTemplateParser.php index d6ac0adc7d..0dcf4632c3 100644 --- a/app/lib/Parsers/DisplayTemplateParser.php +++ b/app/lib/Parsers/DisplayTemplateParser.php @@ -818,7 +818,8 @@ static private function _processChildren(SearchResult $pr_res, $po_nodes, array } } else { $va_relationship_type_ids = $qr_rels->getAllFieldValues("{$t}.type_id"); - $va_relationship_type_orientations = array_fill(0, sizeof($va_relationship_type_ids), $t::getRelationshipOrientationForTables($t, $ps_tablename)); + $va_relationship_type_orientations = array_fill(0, sizeof($va_relationship_type_ids), method_exists($t, 'getRelationshipOrientationForTables') ? $t::getRelationshipOrientationForTables($t, $ps_tablename) : null); + } } elseif($t_rel_instance->isRelationship()) {