From 276576f00755131d272bbf6019d2b3007ef72cc9 Mon Sep 17 00:00:00 2001 From: miroman-afk <74014189+miroman-afk@users.noreply.github.com> Date: Tue, 16 Nov 2021 15:58:20 +0300 Subject: [PATCH] v.2.1 Client file update --- commands/ClientFile.php | 3 ++- composer.json | 2 +- module.ini | 4 ++-- 3 files changed, 5 insertions(+), 4 deletions(-) diff --git a/commands/ClientFile.php b/commands/ClientFile.php index 385e3c0..c74eb20 100644 --- a/commands/ClientFile.php +++ b/commands/ClientFile.php @@ -73,8 +73,9 @@ class ClientFile extends HRCCommand implements HRCCommandInterface { $handle = fopen($tmp_dirname . $filename, 'w+'); $filename = str_replace('_', ' ', $filename); foreach ($clients as $row) { - if (($row['clientPhone']->phone !== '') && ($row['clientPhone']->phone !== '+375 ( ) - -')) { + if (isset($row['clientPhone']->phone) && ($row['clientPhone']->phone !== '') && ($row['clientPhone']->phone !== '+375 ( ) - -')) { $row = array($row['name'], $row['clientPhone']->phone); + fputs($handle, chr(0xEF) . chr(0xBB) . chr(0xBF)); // BOM fputcsv($handle, $row, ';'); } } diff --git a/composer.json b/composer.json index 0621a76..b8c850e 100644 --- a/composer.json +++ b/composer.json @@ -1,6 +1,6 @@ { "name": "hrc-admin/hello-world", - "version": "2.0", + "version": "2.1", "require": { "horeca/admin-php-module-core": "dev-master" }, diff --git a/module.ini b/module.ini index afaf646..68309a4 100644 --- a/module.ini +++ b/module.ini @@ -1,5 +1,5 @@ [info] name=V1 -version=2.0 +version=2.1 [build] -version=2.0 +version=2.1