mirror of
https://github.com/silverstripe/silverstripe-blog
synced 2024-09-29 12:49:25 +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
|
// This shouldn't be possible, but assuming the above fails, just return anything you can get
|
||||||
return $blogTrees;
|
return $blogTrees->first();
|
||||||
}
|
}
|
||||||
|
|
||||||
/* ----------- ACCESSOR OVERRIDES -------------- */
|
/* ----------- ACCESSOR OVERRIDES -------------- */
|
||||||
|
Loading…
Reference in New Issue
Block a user