diff options
author | Silvio Rhatto <rhatto@riseup.net> | 2011-02-18 11:34:41 -0200 |
---|---|---|
committer | Silvio Rhatto <rhatto@riseup.net> | 2011-02-18 11:44:46 -0200 |
commit | 9440f6530bb5809e36d4220062fce040cb00f01c (patch) | |
tree | 7dafba3d214bc78564101a47a1bb745e74f9e83b /www/inc/funkce.inc.php | |
parent | f1e819c4e3c002b61e8158ffe4c6d28ec6e4feb0 (diff) | |
download | original-9440f6530bb5809e36d4220062fce040cb00f01c.tar.gz original-9440f6530bb5809e36d4220062fce040cb00f01c.tar.bz2 |
Avoiding deprecation notices (2)
Diffstat (limited to 'www/inc/funkce.inc.php')
-rw-r--r-- | www/inc/funkce.inc.php | 2 |
1 files changed, 1 insertions, 1 deletions
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"]); |