BUGFIX: returns null when there's no blog IDs

This commit is contained in:
Saophalkun Ponlu 2010-03-11 01:28:37 +00:00
parent 0c4b66ed98
commit c1f20717d1
1 changed files with 2 additions and 0 deletions

View File

@ -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";