forked from extern/egroupware
changed reads for preferences to read intval() of user
This commit is contained in:
parent
54251c3fea
commit
577e22fa72
@ -89,7 +89,7 @@
|
||||
// The following sets any default preferences needed for new applications..
|
||||
// This is smart enough to know if previous preferences were selected, use them.
|
||||
|
||||
$pref = new preferences($account_id);
|
||||
$pref = new preferences(intval($account_id));
|
||||
$t = $pref->get_preferences();
|
||||
|
||||
$docommit = False;
|
||||
|
@ -66,7 +66,7 @@
|
||||
$phpgw->db->query("SELECT account_permissions, account_id FROM accounts WHERE account_lid='$n_loginid'",__LINE__,__FILE__);
|
||||
$phpgw->db->next_record();
|
||||
$apps = explode(":",$phpgw->db->f("account_permissions"));
|
||||
$pref = new preferences($phpgw->db->f("account_id"));
|
||||
$pref = new preferences(intval($phpgw->db->f("account_id")));
|
||||
$phpgw->common->hook_single("add_def_pref", "admin");
|
||||
for ($i=1;$i<sizeof($apps) - 1;$i++) {
|
||||
if($apps[$i]<>"admin")
|
||||
|
@ -56,7 +56,7 @@
|
||||
$user_groups = ereg_replace(",,",",",$user_groups);
|
||||
$phpgw->db->query("UPDATE accounts SET account_groups='$user_groups' WHERE account_id=".$n_users[$i]);
|
||||
|
||||
$pref = new preferences($n_users[$i]);
|
||||
$pref = new preferences(intval($n_users[$i]));
|
||||
$t = $pref->get_preferences();
|
||||
|
||||
$docommit = False;
|
||||
|
Loading…
Reference in New Issue
Block a user