diff --git a/admin/settings.php b/admin/settings.php
index b3e807dea07..387685025d6 100644
--- a/admin/settings.php
+++ b/admin/settings.php
@@ -175,17 +175,19 @@ if (!empty($SITE->fullname)) {
echo '';
break;
case 'right':
- echo '
';
- if (!empty($THEME->roundcorners)) {
- echo '';
- echo '';
+ if (blocks_have_content($pageblocks, BLOCK_POS_RIGHT) || $editing) {
+ echo ' ';
+ if (!empty($THEME->roundcorners)) {
+ echo '';
+ echo '';
+ }
+ blocks_print_group($PAGE, $pageblocks, BLOCK_POS_RIGHT);
+ if (!empty($THEME->roundcorners)) {
+ echo ' ';
+ echo '';
+ }
+ echo ' | ';
}
- blocks_print_group($PAGE, $pageblocks, BLOCK_POS_RIGHT);
- if (!empty($THEME->roundcorners)) {
- echo ' ';
- echo '';
- }
- echo ' | ';
break;
}
}
diff --git a/lib/adminlib.php b/lib/adminlib.php
index c399f2e2b87..dba2bb47dd8 100644
--- a/lib/adminlib.php
+++ b/lib/adminlib.php
@@ -2705,17 +2705,20 @@ function admin_externalpage_print_footer($adminroot) {
echo '';
}
echo '';
- echo '';
- if (!empty($THEME->roundcorners)) {
- echo '';
- echo '';
+ if (blocks_have_content($pageblocks, BLOCK_POS_RIGHT) || $editing) {
+ echo ' ';
+ if (!empty($THEME->roundcorners)) {
+ echo '';
+ echo '';
+ }
+ blocks_print_group($PAGE, $pageblocks, BLOCK_POS_RIGHT);
+ if (!empty($THEME->roundcorners)) {
+ echo ' ';
+ echo '';
+ }
+ echo ' | ';
}
- blocks_print_group($PAGE, $pageblocks, BLOCK_POS_RIGHT);
- if (!empty($THEME->roundcorners)) {
- echo ' ';
- echo '';
- }
- echo ' | ';
+ echo '';
}
print_footer();
}