]> source.dussan.org Git - nextcloud-server.git/commitdiff
Don't show 'Personal' header in settings when Admin section is not there
authorJan-Christoph Borchardt <hey@jancborchardt.net>
Wed, 13 Mar 2019 20:13:55 +0000 (21:13 +0100)
committerJan-Christoph Borchardt <hey@jancborchardt.net>
Sun, 17 Mar 2019 15:20:34 +0000 (16:20 +0100)
Signed-off-by: Jan-Christoph Borchardt <hey@jancborchardt.net>
settings/templates/settings/frame.php

index 1734a92b064ff75f5bfee37804794dc787a80393..e32c4ed2fc9542a82cfe0640d3c7427b96a8a708 100644 (file)
@@ -30,8 +30,10 @@ script('files', 'jquery.fileupload');
 
 <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']]);