Browse code

Subuser-Berechtigungen nur für aktuell aktive Module

Bernd Wurst authored on06/07/2018 11:32:35
Showing1 changed files
... ...
@@ -35,7 +35,9 @@ if ($subusers) {
35 35
         output('<div><p><strong>'.$subuser['username'].'</strong> '.internal_link('delete.php', icon_delete('Löschen'), 'subuser='.$subuser['id']).' '.internal_link('edit.php', icon_edit('Bearbeiten'), 'subuser='.$subuser['id']).'</p>');
36 36
         output('<ul>');
37 37
         foreach ($subuser['modules'] as $mod) {
38
-            output('<li>'.$available_modules[$mod].'</li>');
38
+            if (isset($available_modules[$mod])) {
39
+                output('<li>'.$available_modules[$mod].'</li>');
40
+            }
39 41
         }
40 42
         output('</ul></div>');
41 43
     }