From d47e0f1e42fac0f9024720d0218f71e5fae57f5c Mon Sep 17 00:00:00 2001 From: Alexander NeonXP Kiryukhin Date: Sat, 18 Jun 2016 13:34:32 +0300 Subject: Fix code enter --- src/NeonXP/DozorApi.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/NeonXP/DozorApi.php b/src/NeonXP/DozorApi.php index 5a6498c..da724a9 100644 --- a/src/NeonXP/DozorApi.php +++ b/src/NeonXP/DozorApi.php @@ -78,7 +78,7 @@ class DozorApi private function parseCodeEnter($html) { $html = iconv('cp1251', 'utf8', $html); - $regex = '/\<\!\-\-errorText\-\-\>\\(.+?)\<\/strong\>\<\/p\>\<\!\-\-errorTextEnd\-\-\>' + $regex = '/\<\!\-\-errorText\-\-\>\\(.+?)\<\/strong\>\<\/p\>\<\!\-\-errorTextEnd\-\-\>'; $result = []; preg_match($regex, $html, $result); return $result[1]; -- cgit v1.2.3