corrected table name in sql statements

This commit is contained in:
izzy 2001-02-07 23:12:28 +00:00
parent 5383da6583
commit 7fb4fe8e36

View File

@ -171,7 +171,7 @@
// Groups // Groups
$db2 = $phpgw->db; $db2 = $phpgw->db;
$db2->query("SELECT account_lid FROM accounts WHERE account_id=".$cal_info->owner,__LINE__,__FILE__); $db2->query("SELECT account_lid FROM phpgw_accounts WHERE account_id=".$cal_info->owner,__LINE__,__FILE__);
$db2->next_record(); $db2->next_record();
$user_groups = $phpgw->accounts->read_group_names($db2->f("account_lid")); $user_groups = $phpgw->accounts->read_group_names($db2->f("account_lid"));
@ -180,7 +180,7 @@
// Participants // Participants
$db2 = $phpgw->db; $db2 = $phpgw->db;
$db2->query("select account_id,account_lastname,account_firstname,account_lid " $db2->query("select account_id,account_lastname,account_firstname,account_lid "
. "from accounts where account_status !='L' and " . "from phpgw_accounts where account_status !='L' and "
. "account_id != ".$phpgw_info["user"]["account_id"]." " . "account_id != ".$phpgw_info["user"]["account_id"]." "
. "and account_permissions like '%:calendar:%' " . "and account_permissions like '%:calendar:%' "
. "order by account_lastname,account_firstname,account_lid"); . "order by account_lastname,account_firstname,account_lid");