From 8444347b02bf9d94712461fd545dc6945254c167 Mon Sep 17 00:00:00 2001 From: Andrew Ruthven Date: Mon, 6 Feb 2023 19:42:36 +1300 Subject: [PATCH] We no longer support PHP 5.1, assume that DateTime is available --- inc/RRule.php | 2 -- inc/caldav-REPORT.php | 2 -- 2 files changed, 4 deletions(-) diff --git a/inc/RRule.php b/inc/RRule.php index fa0fb80c..64515159 100644 --- a/inc/RRule.php +++ b/inc/RRule.php @@ -9,8 +9,6 @@ * @license http://gnu.org/copyleft/gpl.html GNU GPL v2 or later */ -if ( !class_exists('DateTime') ) return; - /** * Try and extract something like "Pacific/Auckland" or "America/Indiana/Indianapolis" if possible, given * the VTIMEZONE component that is passed in. This is much more complex than olson_from_tzstring since diff --git a/inc/caldav-REPORT.php b/inc/caldav-REPORT.php index 9505886b..ec07d406 100644 --- a/inc/caldav-REPORT.php +++ b/inc/caldav-REPORT.php @@ -86,8 +86,6 @@ switch( $xmltree->GetNSTag() ) { function check_for_expansion( $calendar_data_node ) { global $need_expansion, $expand_range_start, $expand_range_end, $expand_as_floating; - if ( !class_exists('DateTime') ) return; /** We don't support expansion on PHP5.1 */ - $expansion = $calendar_data_node->GetElements('urn:ietf:params:xml:ns:caldav:expand'); if ( isset($expansion[0]) ) { $need_expansion = true;