From db3db60f7d0a02eff878aae0e531f753a759698e Mon Sep 17 00:00:00 2001 From: Petr Skoda Date: Sun, 5 Sep 2010 21:15:12 +0000 Subject: [PATCH] MDL-23431 XMLDB editor fails to parse STATEMENTS properly in certain cases --- lib/xmldb/classes/XMLDBStatement.class.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/xmldb/classes/XMLDBStatement.class.php b/lib/xmldb/classes/XMLDBStatement.class.php index fb2bfb8c39a..62f32b0c5cf 100644 --- a/lib/xmldb/classes/XMLDBStatement.class.php +++ b/lib/xmldb/classes/XMLDBStatement.class.php @@ -336,7 +336,7 @@ class XMLDBStatement extends XMLDBObject { $fields = array(); /// Get first part from the sentence (before VALUES) - preg_match('/^\((.*)\)\s+VALUES/is', $sentence, $matches); + preg_match('/^\((.*)\)\s+VALUES/Us', $sentence, $matches); if (isset($matches[1])) { $part = $matches[1]; /// Convert the comma separated string to an array