mirror of
https://github.com/EGroupware/egroupware.git
synced 2024-12-25 16:19:00 +01:00
fixed app listing
This commit is contained in:
parent
80c8300172
commit
f1bb2f6bef
@ -193,15 +193,14 @@
|
||||
<select name="settings[default_app]">
|
||||
<option value=""> </option>
|
||||
<?php
|
||||
$db_perms = $phpgw->accounts->read_apps($phpgw_info["user"]["userid"]);
|
||||
while ($permission = each($db_perms)) {
|
||||
if ($phpgw_info["apps"][$permission[0]]["enabled"]) {
|
||||
reset($phpgw_info["user"]["apps"]);
|
||||
while ($permission = each($phpgw_info["user"]["apps"])) {
|
||||
if ($phpgw_info["apps"][$permission[0]]["status"] != 2) {
|
||||
echo "<option value=\"" . $permission[0] . "\"";
|
||||
if ($phpgw_info["user"]["preferences"]["common"]["default_app"] == $permission[0]) {
|
||||
echo " selected";
|
||||
}
|
||||
echo ">" . lang($phpgw_info["apps"][$permission[0]]["title"])
|
||||
. "</option>";
|
||||
echo ">" . lang($phpgw_info["apps"][$permission[0]]["title"])."</option>";
|
||||
}
|
||||
}
|
||||
?></select>
|
||||
|
Loading…
Reference in New Issue
Block a user