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