From de26744d5237b7e8a346d3641e725edbec494bc2 Mon Sep 17 00:00:00 2001 From: sjb4891 Date: Wed, 11 Oct 2000 22:44:12 +0000 Subject: [PATCH] Add account info to the first query to display the actual person that created the event instead of the current user --- calendar/view.php | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/calendar/view.php b/calendar/view.php index f8523af839..a2d67508fb 100755 --- a/calendar/view.php +++ b/calendar/view.php @@ -50,7 +50,9 @@ $phpgw->db->query("SELECT cal_create_by, cal_date, cal_time, cal_mod_date, " . "cal_mod_time,cal_duration,cal_priority,cal_type,cal_access, " - . "cal_name,cal_description FROM webcal_entry WHERE cal_id=$id"); + . "cal_name,cal_description,account_firstname, account_lastname " + . " FROM webcal_entry, accounts WHERE cal_id=$id " + . " and webcal_entry.cal_create_by = accounts.account_lid"); $phpgw->db->next_record(); @@ -117,7 +119,7 @@ " . lang("Created by") . ":\n"; - echo "" . $phpgw_info["user"]["fullname"] . "\n"; + echo "" . $phpgw->db->f(11) . " " . $phpgw->db->f(12) . "\n"; ?> :