Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save Vyacheslavkor/a6f8a61d9497119caf661813ff547ca6 to your computer and use it in GitHub Desktop.
Save Vyacheslavkor/a6f8a61d9497119caf661813ff547ca6 to your computer and use it in GitHub Desktop.
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