From 577e22fa7239ceb9a27088e34109522c8008db63 Mon Sep 17 00:00:00 2001 From: skeeter Date: Mon, 8 Jan 2001 06:55:27 +0000 Subject: [PATCH] changed reads for preferences to read intval() of user --- admin/editaccount.php | 2 +- admin/newaccount.php | 2 +- admin/newgroup.php | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/admin/editaccount.php b/admin/editaccount.php index 9dc274ce17..f321d6bd3d 100755 --- a/admin/editaccount.php +++ b/admin/editaccount.php @@ -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; diff --git a/admin/newaccount.php b/admin/newaccount.php index 18c888f999..891a9b7a59 100755 --- a/admin/newaccount.php +++ b/admin/newaccount.php @@ -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"admin") diff --git a/admin/newgroup.php b/admin/newgroup.php index c7d6d45bea..aae8bccfac 100755 --- a/admin/newgroup.php +++ b/admin/newgroup.php @@ -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;