diff --git a/bl-kernel/admin/views/dashboard.php b/bl-kernel/admin/views/dashboard.php
index 49162c4a..9a856a35 100644
--- a/bl-kernel/admin/views/dashboard.php
+++ b/bl-kernel/admin/views/dashboard.php
@@ -136,11 +136,10 @@
getScheduledDB(true);
- if( empty($scheduledPages) ) {
+ if (empty($scheduledPages)) {
echo '- '.$Language->g('There are no scheduled content').'
';
- }
- else {
- foreach($keys as $key) {
+ } else {
+ foreach ($scheduledPages as $key) {
$page = buildPage($key);
echo '- '.$page->dateRaw(SCHEDULED_DATE_FORMAT).''.($page->title()?$page->title():'['.$Language->g('Empty title').'] ').'
';
}
@@ -154,11 +153,10 @@