Просмотр исходного кода

#1836 Invitation form: incorrect error message when sending invite as not logged-in is user

Alex Trofimov 8 лет назад
Родитель
Сommit
58c3b96b47
1 измененных файлов с 1 добавлено и 3 удалено
  1. 1 3
      modules/boonex/invites/classes/BxInvModule.php

+ 1 - 3
modules/boonex/invites/classes/BxInvModule.php

@@ -410,9 +410,7 @@ class BxInvModule extends BxDolModule
 
 
         $mixedAllowed = $this->isAllowedInvite($iProfileId);
         $mixedAllowed = $this->isAllowedInvite($iProfileId);
         if($mixedAllowed !== true)
         if($mixedAllowed !== true)
-            return array(
-                'content' => MsgBox($mixedAllowed)
-            );
+            return $mixedAllowed;
 
 
         $mixedInvites = false;
         $mixedInvites = false;
         if(!isAdmin($iAccountId)) {
         if(!isAdmin($iAccountId)) {