Created
May 25, 2021 07:31
-
-
Save Vyacheslavkor/a6f8a61d9497119caf661813ff547ca6 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
diff --git a/app/addons/rus_unisender/func.php b/app/addons/rus_unisender/func.php | |
index 7fb206b51a..218d606796 100644 | |
--- a/app/addons/rus_unisender/func.php | |
+++ b/app/addons/rus_unisender/func.php | |
@@ -14,6 +14,7 @@ | |
use Tygh\Http; | |
use Tygh\Registry; | |
+use Tygh\Enum\SiteArea; | |
use Tygh\Enum\YesNo; | |
if (!defined('BOOTSTRAP')) { die('Access denied'); } | |
@@ -222,7 +223,7 @@ function fn_unisender_api($method, $post, &$response, $notify = true) | |
$_result = json_decode($result, true); | |
$response = ''; | |
if (empty($_result)) { | |
- if ($notify) { | |
+ if ($notify && SiteArea::isAdmin(AREA)) { | |
fn_set_notification('E', __('notice'), __('addons.rus_unisender.no_response')); | |
} | |
$response = __('no_response'); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment