From 3ae0b78c7de5065eea74a3bfe19aef3db2416c5a Mon Sep 17 00:00:00 2001 From: mattclegg Date: Mon, 30 Jul 2012 23:27:45 +0100 Subject: [PATCH] MINOR Amend fallback to return first from `DataList` --- code/BlogTree.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/code/BlogTree.php b/code/BlogTree.php index a8ace83..683be82 100644 --- a/code/BlogTree.php +++ b/code/BlogTree.php @@ -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 -------------- */