From 134ee290e51bcd5f877710d04777b0a4472b28b5 Mon Sep 17 00:00:00 2001 From: Mariusz Krzaczkowski Date: Thu, 7 Nov 2019 08:35:11 +0100 Subject: [PATCH] Added minor improvement --- .gitattributes | 6 ++++++ program/steps/mail/autocomplete.inc | 6 +----- version.php | 4 ++-- 3 files changed, 9 insertions(+), 7 deletions(-) diff --git a/.gitattributes b/.gitattributes index 17d5c942..be9c3816 100644 --- a/.gitattributes +++ b/.gitattributes @@ -18,3 +18,9 @@ *.yarnclean text eol=lf *.lock text eol=lf *.yarn-integrity text eol=lf + +.github/ export-ignore +tests/ export-ignore +.travis.yml export-ignore +.scrutinizer.yml export-ignore +.sensiolabs.yml export-ignore diff --git a/program/steps/mail/autocomplete.inc b/program/steps/mail/autocomplete.inc index 04e30dbb..2b07890c 100644 --- a/program/steps/mail/autocomplete.inc +++ b/program/steps/mail/autocomplete.inc @@ -16,11 +16,7 @@ if (strlen($search)) { $addressBookFile = $RCMAIL->config->get('root_directory') . 'cache/addressBook/mails_' . $crmUserId . '.php'; if (is_file($addressBookFile)) { include $addressBookFile; - foreach ($bookMails as $row) { - if (stripos($row, $search) !== false) { - $contacts[] = $row; - } - } + $contacts = preg_grep("/{$search}/i", $bookMails); } } } diff --git a/version.php b/version.php index b2d9c783..f4fdbf77 100644 --- a/version.php +++ b/version.php @@ -1,6 +1,6 @@ '2019.10.24', - 'version' => '0.0.83' + 'patch' => '2019.11.07', + 'version' => '0.0.84' ];