From b0beed7fb6402152472659aec3d3e24dcad721dc Mon Sep 17 00:00:00 2001 From: Laurent Destailleur Date: Sat, 16 Jun 2007 10:13:51 +0000 Subject: [PATCH] Correction regex --- htdocs/lib/functions.inc.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/htdocs/lib/functions.inc.php b/htdocs/lib/functions.inc.php index 8cf82ebe0c6..c762dfa9969 100644 --- a/htdocs/lib/functions.inc.php +++ b/htdocs/lib/functions.inc.php @@ -2258,7 +2258,7 @@ function numero_semaine($time) { $stime = strftime( '%Y-%m-%d',$time); - if (eregi('^([0-9]+)\-([0-9]+)\-([0-9]+)\s?([0-9]+)?:?([0-9]+)?',$stime,$reg)) + if (eregi('^([0-9]+)\-([0-9]+)\-([0-9]+) ?([0-9]+)?:?([0-9]+)?',$stime,$reg)) { // Date est au format 'YYYY-MM-DD' ou 'YYYY-MM-DD HH:MM:SS' $annee = $reg[1];