From 380d980dc20ff4670b137811254e9e85e2c29f32 Mon Sep 17 00:00:00 2001 From: Andrew McMillan Date: Sun, 10 Dec 2006 15:25:36 +1300 Subject: [PATCH] Ensure user_no on request is always valid. --- inc/CalDAVRequest.php | 1 + 1 file changed, 1 insertion(+) diff --git a/inc/CalDAVRequest.php b/inc/CalDAVRequest.php index d84b5263..f11eb9e9 100644 --- a/inc/CalDAVRequest.php +++ b/inc/CalDAVRequest.php @@ -145,6 +145,7 @@ class CalDAVRequest dbg_error_log( "caldav", "Restricted permissions for user accessing someone elses hierarchy: %s", implode( ", ", $this->permissions ) ); } } + if ( !isset($this->user_no) ) $this->user_no = $session->user_no; /** * If the content we are receiving is XML then we parse it here.