@@ -8,13 +8,13 @@ |
||
8 | 8 | |
9 | 9 | function NextSibling() { |
10 | 10 | $where = "ParentID = {$this->owner->ParentID} AND Sort > {$this->owner->Sort}"; |
11 | - $result = SiteTree::get()->where($where)->sort('Sort')->First(); |
|
12 | - return $result; |
|
11 | + $result = SiteTree::get()->where($where)->sort('Sort')->First(); |
|
12 | + return $result; |
|
13 | 13 | } |
14 | 14 | |
15 | 15 | function PreviousSibling() { |
16 | 16 | $where = "ParentID = {$this->owner->ParentID} AND Sort < {$this->owner->Sort}"; |
17 | - return SiteTree::get()->where($where)->sort('Sort DESC')->First(); |
|
17 | + return SiteTree::get()->where($where)->sort('Sort DESC')->First(); |
|
18 | 18 | } |
19 | 19 | |
20 | 20 | } |
21 | 21 | \ No newline at end of file |