AntonLV 7 лет назад
Родитель
Сommit
117936f1b3

+ 1 - 1
inc/classes/BxDolPrivacyQuery.php

@@ -284,7 +284,7 @@ class BxDolPrivacyQuery extends BxDolDb
         if(empty($aParamsSet))
             return false;
 
-        return $this->query("INSERT INTO `sys_privacy_groups_custom_members` SET " . $this->arrayToSQL($aParamsSet));
+        return $this->query("INSERT IGNORE INTO `sys_privacy_groups_custom_members` SET " . $this->arrayToSQL($aParamsSet));
     }
 
     public function deleteGroupCustomMember($aParamsWhere)

+ 2 - 2
modules/boonex/english/data/langs/system/en.xml

@@ -2646,9 +2646,9 @@ If it is not enabled then please consider implement this optimization, since it
         <string name="_sys_ps_group_title_custom"><![CDATA[Custom]]></string>
         <string name="_sys_ps_group_title_followers"><![CDATA[Followers]]></string>
 	<string name="_sys_ps_group_title_friends"><![CDATA[Friends]]></string>
-        <string name="_sys_ps_group_title_friends_selected"><![CDATA[Selected Friends]]></string>
+        <string name="_sys_ps_group_title_friends_selected"><![CDATA[Selected Friends...]]></string>
         <string name="_sys_ps_group_title_relations"><![CDATA[Relationships]]></string>
-        <string name="_sys_ps_group_title_relations_selected"><![CDATA[Selected Relationships]]></string>
+        <string name="_sys_ps_group_title_relations_selected"><![CDATA[Selected Relationships...]]></string>
 	<string name="_sys_ps_group_title_me_only"><![CDATA[Me only]]></string>
 	<string name="_sys_ps_group_title_members"><![CDATA[Members]]></string>
 	<string name="_sys_ps_group_title_public"><![CDATA[Public]]></string>

+ 2 - 2
modules/boonex/russian/data/langs/system/ru.xml

@@ -2645,9 +2645,9 @@
         <string name="_sys_ps_group_title_custom"><![CDATA[Индивидуально]]></string>
         <string name="_sys_ps_group_title_followers"><![CDATA[Подписчики]]></string>
 	<string name="_sys_ps_group_title_friends"><![CDATA[Друзья]]></string>
-        <string name="_sys_ps_group_title_friends_selected"><![CDATA[Друзья (выборочно)]]></string>
+        <string name="_sys_ps_group_title_friends_selected"><![CDATA[Избранные друзья...]]></string>
         <string name="_sys_ps_group_title_relations"><![CDATA[Отношения]]></string>
-        <string name="_sys_ps_group_title_relations_selected"><![CDATA[Отношения (выборочно)]]></string>
+        <string name="_sys_ps_group_title_relations_selected"><![CDATA[Избранные отношения...]]></string>
 	<string name="_sys_ps_group_title_me_only"><![CDATA[Только я]]></string>
 	<string name="_sys_ps_group_title_members"><![CDATA[Пользователи]]></string>
 	<string name="_sys_ps_group_title_public"><![CDATA[Все]]></string>

+ 2 - 1
template/scripts/BxBasePrivacy.php

@@ -94,7 +94,8 @@ class BxBasePrivacy extends BxDolPrivacy
 
             if(($aMembersList = $oForm->getCleanValue('list')) !== false)
                 $aMembers = array_merge($aMembers, $aMembersList);
-            
+
+            $aMembers = array_unique($aMembers);
             if(empty($aMembers) || !is_array($aMembers))
                 return array();