mirror of
https://github.com/silverstripe/silverstripe-blog
synced 2024-10-22 11:05:58 +02:00
MINOR Amend fallback to return first from DataList
This commit is contained in:
parent
0533ad56e2
commit
3ae0b78c7d
@ -66,7 +66,7 @@ class BlogTree extends Page {
|
||||
}
|
||||
|
||||
// This shouldn't be possible, but assuming the above fails, just return anything you can get
|
||||
return $blogTrees;
|
||||
return $blogTrees->first();
|
||||
}
|
||||
|
||||
/* ----------- ACCESSOR OVERRIDES -------------- */
|
||||
|
Loading…
Reference in New Issue
Block a user