mirror of
https://github.com/silverstripe/silverstripe-blog
synced 2024-10-22 11:05:58 +02:00
BUGFIX: returns null when there's no blog IDs
This commit is contained in:
parent
0c4b66ed98
commit
c1f20717d1
@ -48,6 +48,8 @@ class ArchiveWidget extends Widget {
|
||||
$container = BlogTree::current();
|
||||
$ids = $container->BlogHolderIDs();
|
||||
|
||||
if(empty($ids)) return $results;
|
||||
|
||||
$stage = Versioned::current_stage();
|
||||
$suffix = (!$stage || $stage == 'Stage') ? "" : "_$stage";
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user