From 188f7e09c855841b502fdccd520c910652b0e882 Mon Sep 17 00:00:00 2001 From: bettina Date: Sat, 23 Dec 2000 05:16:32 +0000 Subject: [PATCH] included missing ) plus ; --- admin/editgroup.php | 8 ++++---- admin/newapplication.php | 4 ++-- 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/admin/editgroup.php b/admin/editgroup.php index fdbbf5509b..203c8813a9 100755 --- a/admin/editgroup.php +++ b/admin/editgroup.php @@ -42,14 +42,14 @@ $phpgw->db->query("SELECT group_apps FROM groups WHERE group_id=".$group_id,__FILE__,__LINE__); $phpgw->db->next_record(); - $apps_before = $phpgw->db->f("group_apps") + $apps_before = $phpgw->db->f("group_apps"); $phpgw->accounts->add_app($n_group_permissions); $apps_after = $phpgw->accounts->add_app("",True); if($apps_before <> $apps_after) { $after_apps = explode(":",$apps_after); for ($i=1;$i<=count($after_apps);$i++) { - if (!strpos(" ".$apps_before." ",$after_apps) { + if (!strpos(" ".$apps_before." ",$after_apps)) { $new_apps[] = $after_apps; } } @@ -75,9 +75,9 @@ if(is_array($phpgw_newuser)) unset($phpgw_newuser); $phpgw->db->query("SELECT preference_value FROM preferences WHERE preference_owner=".$n_users[$i],__FILE__,__LINE__); $phpgw->db->next_record(); - $phpgw_newuser["user"]["preferences"] = unserialize($phpgw->db->f("preference_value"); + $phpgw_newuser["user"]["preferences"] = unserialize($phpgw->db->f("preference_value")); } else { - $phpgw_newuser["user"]["preferences"] = $phpgw_info["user"]["preferences"] + $phpgw_newuser["user"]["preferences"] = $phpgw_info["user"]["preferences"]; } $docommit = False; for ($j=0;$jdb->query("SELECT preference_owner, preference_value FROM preferences"); if($phpgw->db->num_rows()) { while($phpgw->db->next_record()) { - if($phpgw->db->f("preference_owner") != $phpgw_info["user"]["account_id"] { - $phpgw_newuser["user"]["preferences"] = unserialize($phpgw->db->f("preference_value"); + if($phpgw->db->f("preference_owner") != $phpgw_info["user"]["account_id"]) { + $phpgw_newuser["user"]["preferences"] = unserialize($phpgw->db->f("preference_value")); $phpgw->common->hook_single("add_def_pref", $n_app_name); $phpgw->preferences->commit_user($phpgw->db->f("preference_owner")); } else {