Skip to content

Commit

Permalink
Don't show 'Personal' header in settings when Admin section is not there
Browse files Browse the repository at this point in the history
Signed-off-by: Jan-Christoph Borchardt <hey@jancborchardt.net>
  • Loading branch information
jancborchardt authored and rullzer committed Mar 15, 2019
1 parent c01019b commit a25f956
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion settings/templates/settings/frame.php
Original file line number Diff line number Diff line change
Expand Up @@ -30,8 +30,10 @@

<div id="app-navigation">
<ul>
<li class="app-navigation-caption"><?php p($l->t('Personal')); ?></li>
<?php if(!empty($_['forms']['admin'])) { ?>
<li class="app-navigation-caption"><?php p($l->t('Personal')); ?></li>
<?php
}
foreach($_['forms']['personal'] as $form) {
if (isset($form['anchor'])) {
$anchor = \OC::$server->getURLGenerator()->linkToRoute('settings.PersonalSettings.index', ['section' => $form['anchor']]);
Expand Down

0 comments on commit a25f956

Please sign in to comment.