diff options
Diffstat (limited to 'themes')
-rw-r--r-- | themes/example/defaults.php | 12 |
1 files changed, 10 insertions, 2 deletions
diff --git a/themes/example/defaults.php b/themes/example/defaults.php index a1c749c46c9..7ed7a2766e4 100644 --- a/themes/example/defaults.php +++ b/themes/example/defaults.php @@ -81,8 +81,16 @@ class OC_Theme { * @return string short footer */ public function getShortFooter(): string { - $footer = '© ' . date('Y') . ' <a href="' . $this->getBaseUrl() . '" target="_blank">' . $this->getEntity() . '</a>' . - '<br/>' . $this->getSlogan(); + $entity = $this->getEntity(); + + $footer = '© ' . date('Y'); + + // Add link if entity name is not empty + if ($entity !== '') { + $footer .= ' <a href="' . $this->getBaseUrl() . '" target="_blank">' . $entity . '</a>' . '<br/>'; + } + + $footer .= $this->getSlogan(); return $footer; } |