mirror of
https://github.com/silverstripe/silverstripe-subsites
synced 2024-10-22 09:05:55 +00:00
BUGFIX: Fixed failing test LeftAndMainTest::testLeftAndMainSubclasses(); SubsiteList had an error if the Subsite table was empty.
This commit is contained in:
parent
39861dbe2c
commit
afe75ea88e
@ -109,7 +109,7 @@ class LeftAndMainSubsites extends Extension {
|
||||
$output .= '</select>';
|
||||
|
||||
return $output;
|
||||
} else {
|
||||
} else if($list->Count() == 1) {
|
||||
return $list->First()->Title;
|
||||
}
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user