fixed app listing

This commit is contained in:
seek3r 2001-01-29 02:26:01 +00:00
parent 80c8300172
commit f1bb2f6bef

View File

@ -193,17 +193,16 @@
<select name="settings[default_app]"> <select name="settings[default_app]">
<option value="">&nbsp;</option> <option value="">&nbsp;</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>
</td> </td>
</tr> </tr>