aboutsummaryrefslogtreecommitdiffstats
path: root/functions/parse/recur_functions.php
diff options
context:
space:
mode:
authorDaniel Lange <DLange@git.local>2017-02-20 18:12:46 +0100
committerDaniel Lange <DLange@git.local>2017-02-20 18:12:46 +0100
commit335d3c5c9c0b24ff5e07cd1968236a8dbc4f2c70 (patch)
tree6dfb123b3ff27b46bcdf9ef9acf8fa41bffec946 /functions/parse/recur_functions.php
parent7a4da3f67cb891cd5408bb4b511a54ccf9662485 (diff)
downloadphpicalendar-335d3c5c9c0b24ff5e07cd1968236a8dbc4f2c70.tar.gz
phpicalendar-335d3c5c9c0b24ff5e07cd1968236a8dbc4f2c70.tar.bz2
phpicalendar-335d3c5c9c0b24ff5e07cd1968236a8dbc4f2c70.zip
PHP 7 compatibility from Sourceforge #680
Diffstat (limited to 'functions/parse/recur_functions.php')
-rw-r--r--functions/parse/recur_functions.php4
1 files changed, 2 insertions, 2 deletions
diff --git a/functions/parse/recur_functions.php b/functions/parse/recur_functions.php
index 82e9568..8bce9fe 100644
--- a/functions/parse/recur_functions.php
+++ b/functions/parse/recur_functions.php
@@ -138,7 +138,7 @@ function expand_byday($time) {
[2] => 4 number
[3] => TH day abbr
*/
- ereg ('([-\+]{0,1})?([0-9]+)?([A-Z]{2})', $day, $byday_arr);
+ preg_match ('/([-\+]{0,1})?([0-9]+)?([A-Z]{2})/', $day, $byday_arr);
$on_day = two2threeCharDays($byday_arr[3]);
switch ($freq_type) {
case 'week':
@@ -254,7 +254,7 @@ function restrict_byday($times, $freq = '') {
[2] => 4 number
[3] => TH day abbr
*/
- ereg ('([-\+]{0,1})?([0-9]{1})?([A-Z]{2})', $day, $byday_arr);
+ preg_match ('/([-\+]{0,1})?([0-9]{1})?([A-Z]{2})/', $day, $byday_arr);
$byday3[] = two2threeCharDays($byday_arr[3]);
}
$new_times = array();

© 2014-2024 Faster IT GmbH | imprint | privacy policy