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 --- week.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'week.php') diff --git a/week.php b/week.php index 3ad2412..40532ef 100644 --- a/week.php +++ b/week.php @@ -31,7 +31,7 @@ $display_date = "$start_week - $end_week"; $sidebar_date = localizeDate($dateFormat_week_list, $unix_time); // For the side months -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]; -- cgit v1.2.3