From 335d3c5c9c0b24ff5e07cd1968236a8dbc4f2c70 Mon Sep 17 00:00:00 2001 From: Daniel Lange Date: Mon, 20 Feb 2017 18:12:46 +0100 Subject: PHP 7 compatibility from Sourceforge #680 --- functions/calendar_functions.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'functions/calendar_functions.php') diff --git a/functions/calendar_functions.php b/functions/calendar_functions.php index d5586f0..4a05759 100644 --- a/functions/calendar_functions.php +++ b/functions/calendar_functions.php @@ -226,7 +226,7 @@ function display_ical_list($cals, $pick=FALSE) { while (!feof($ifile)) { $line = fgets($ifile, 1024); $line = trim($line); - if (ereg ("([^:]+):(.*)", $line, $regs)){ + if (preg_match ("/([^:]+):(.*)/", $line, $regs)){ $field = $regs[1]; $data = $regs[2]; $property = $field; -- cgit v1.2.3