From 20e3e2d91a90ffe4d57379e9b2650d4e81738b76 Mon Sep 17 00:00:00 2001 From: Andrew McMillan Date: Mon, 10 Sep 2012 13:42:23 +1200 Subject: [PATCH] Fix unassigned variable. --- inc/WritableCollection.php | 1 + 1 file changed, 1 insertion(+) diff --git a/inc/WritableCollection.php b/inc/WritableCollection.php index f3589527..76832c06 100644 --- a/inc/WritableCollection.php +++ b/inc/WritableCollection.php @@ -245,6 +245,7 @@ EOSQL; if ( !$this->IsSchedulingCollection() ) { $this->WriteCalendarAlarms($dav_id, $vcal); $this->WriteCalendarAttendees($dav_id, $vcal); + $put_action_type = ($create_resource ? 'INSERT' : 'UPDATE'); if ( $log_action && function_exists('log_caldav_action') ) { log_caldav_action( $put_action_type, $first->GetPValue('UID'), $user_no, $collection_id, $path ); }