diff --git a/calendar/edit_entry.php b/calendar/edit_entry.php index aa29916fcb..26b0aa4c41 100755 --- a/calendar/edit_entry.php +++ b/calendar/edit_entry.php @@ -261,11 +261,9 @@ function validate_and_submit() { db->query("select loginid, lastname, firstname from accounts where " - . "status !='L' and loginid != '" . $phpgw_info["user"]["userid"] . "' and " - . "permissions like '%:calendar:%' order by lastname,firstname,loginid"); + $phpgw->db->query("select account_lid,account_lastname, account_firstname from accounts where " + . "account_status !='L' and account_lid != '" . $phpgw_info["user"]["userid"] . "' and " + . "account_permissions like '%:calendar:%' order by account_lastname,account_firstname,account_lid"); if ($phpgw->db->num_rows() > 50) $size = 15; @@ -279,14 +277,15 @@ function validate_and_submit() { while ($phpgw->db->next_record()) { echo "\n"; }