From 70a04751bc80ba89c864af6de88cf4d962b97c69 Mon Sep 17 00:00:00 2001 From: jakubvrana Date: Mon, 17 Aug 2009 13:15:15 +0000 Subject: [PATCH] Compatibility with older PHP git-svn-id: https://adminer.svn.sourceforge.net/svnroot/adminer/trunk@973 7c3ca157-0c34-0410-bff1-cbf682f78f5c --- editor/include/adminer.inc.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/editor/include/adminer.inc.php b/editor/include/adminer.inc.php index 4abb1b76..a8493c22 100644 --- a/editor/include/adminer.inc.php +++ b/editor/include/adminer.inc.php @@ -323,7 +323,7 @@ ORDER BY ORDINAL_POSITION"); //! requires MySQL 5 if ($function == "now") { return "$function()"; } - $return = $dbh->quote(ereg('date|timestamp', $field["type"]) && preg_match('(^' . preg_replace('~(\\\\\\$([0-9]))~', '(?[0-9]+)', preg_quote(lang('$1-$3-$5'))) . '(.*))', $value, $match) + $return = $dbh->quote(ereg('date|timestamp', $field["type"]) && preg_match('(^' . preg_replace('~(\\\\\\$([0-9]))~', '(?P[0-9]+)', preg_quote(lang('$1-$3-$5'))) . '(.*))', $value, $match) ? ($match["p1"] ? $match["p1"] : ($match["p2"] < 70 ? 20 : 19) . $match["p2"]) . "-$match[p3]$match[p4]-$match[p5]$match[p6]" . end($match) : $value );