changed reads for preferences to read intval() of user

This commit is contained in:
skeeter 2001-01-08 06:55:27 +00:00
parent 54251c3fea
commit 577e22fa72
3 changed files with 3 additions and 3 deletions

View File

@ -89,7 +89,7 @@
// The following sets any default preferences needed for new applications.. // The following sets any default preferences needed for new applications..
// This is smart enough to know if previous preferences were selected, use them. // 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(); $t = $pref->get_preferences();
$docommit = False; $docommit = False;

View File

@ -66,7 +66,7 @@
$phpgw->db->query("SELECT account_permissions, account_id FROM accounts WHERE account_lid='$n_loginid'",__LINE__,__FILE__); $phpgw->db->query("SELECT account_permissions, account_id FROM accounts WHERE account_lid='$n_loginid'",__LINE__,__FILE__);
$phpgw->db->next_record(); $phpgw->db->next_record();
$apps = explode(":",$phpgw->db->f("account_permissions")); $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"); $phpgw->common->hook_single("add_def_pref", "admin");
for ($i=1;$i<sizeof($apps) - 1;$i++) { for ($i=1;$i<sizeof($apps) - 1;$i++) {
if($apps[$i]<>"admin") if($apps[$i]<>"admin")

View File

@ -56,7 +56,7 @@
$user_groups = ereg_replace(",,",",",$user_groups); $user_groups = ereg_replace(",,",",",$user_groups);
$phpgw->db->query("UPDATE accounts SET account_groups='$user_groups' WHERE account_id=".$n_users[$i]); $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(); $t = $pref->get_preferences();
$docommit = False; $docommit = False;