From 36b0d7bc67d2a386c971750e5fc40bfd4331846e Mon Sep 17 00:00:00 2001 From: Andrew McMillan Date: Sat, 4 Nov 2006 14:31:00 +1300 Subject: [PATCH] Still use the user_no in the query, but base it on the path. --- inc/caldav-GET.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/inc/caldav-GET.php b/inc/caldav-GET.php index a82c88dd..72e36bef 100644 --- a/inc/caldav-GET.php +++ b/inc/caldav-GET.php @@ -20,7 +20,7 @@ if ( ! isset($permissions['read']) ) { return; } -$qry = new PgQuery( "SELECT * FROM caldav_data WHERE dav_name = ? ;", $request_path); +$qry = new PgQuery( "SELECT * FROM caldav_data WHERE user_no = ? AND dav_name = ? ;", $path_user_no, $request_path); dbg_error_log("get", "%s", $qry->querystring ); if ( $qry->Exec("GET") && $qry->rows == 1 ) { $event = $qry->Fetch();