From 9440f6530bb5809e36d4220062fce040cb00f01c Mon Sep 17 00:00:00 2001 From: Silvio Rhatto Date: Fri, 18 Feb 2011 11:34:41 -0200 Subject: Avoiding deprecation notices (2) --- www/inc/funkce.inc.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/www/inc/funkce.inc.php b/www/inc/funkce.inc.php index 368ea8e..de4b592 100644 --- a/www/inc/funkce.inc.php +++ b/www/inc/funkce.inc.php @@ -54,7 +54,7 @@ function readInfo ($infofile, $file) { $info_array = infoParse($infofile); if ($info_array["date"]) { // try to be a little smarter about format - if (ereg("([0-9]{1,2})\.([0-9]{1,2})\.([0-9]{4})", + if (preg_match("/([0-9]{1,2})\.([0-9]{1,2})\.([0-9]{4})/", $info_array["date"])) { // remain compatible - DD.MM.YYYY list($day,$month,$year) = preg_split("/\./", $info_array["date"]); -- cgit v1.2.3