diff options
author | Daniel Lange <DLange@git.local> | 2017-02-20 18:12:46 +0100 |
---|---|---|
committer | Daniel Lange <DLange@git.local> | 2017-02-20 18:12:46 +0100 |
commit | 335d3c5c9c0b24ff5e07cd1968236a8dbc4f2c70 (patch) | |
tree | 6dfb123b3ff27b46bcdf9ef9acf8fa41bffec946 /functions/list_functions.php | |
parent | 7a4da3f67cb891cd5408bb4b511a54ccf9662485 (diff) | |
download | phpicalendar-335d3c5c9c0b24ff5e07cd1968236a8dbc4f2c70.tar.gz phpicalendar-335d3c5c9c0b24ff5e07cd1968236a8dbc4f2c70.tar.bz2 phpicalendar-335d3c5c9c0b24ff5e07cd1968236a8dbc4f2c70.zip |
PHP 7 compatibility from Sourceforge #680
Diffstat (limited to 'functions/list_functions.php')
-rw-r--r-- | functions/list_functions.php | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/functions/list_functions.php b/functions/list_functions.php index fb97354..a7a1f59 100644 --- a/functions/list_functions.php +++ b/functions/list_functions.php @@ -2,7 +2,7 @@ function list_jumps() { global $phpiCal_config, $lang, $cal; - $calName = join(',', array_map("getCalendarName", split(',', $cal))); + $calName = join(',', array_map("getCalendarName", explode(',', $cal))); $today = date('Ymd', time() + $phpiCal_config->second_offset); $return = '<option value="#">'.$lang['l_jump'].'</option>'; $return .= '<option value="day.php?cal='.$calName.'&getdate='.$today.'">'.$lang['l_goday'].'</option>'; @@ -77,7 +77,7 @@ function list_years() { function list_weeks() { global $getdate, $this_year, $cal, $dateFormat_week_jump, $phpiCal_config; - ereg ("([0-9]{4})([0-9]{2})([0-9]{2})", $getdate, $day_array2); + preg_match ("/([0-9]{4})([0-9]{2})([0-9]{2})/", $getdate, $day_array2); $this_day = $day_array2[3]; $this_month = $day_array2[2]; $this_year = $day_array2[1]; |