diff --git a/.gitignore b/.gitignore index 61ead86..1dda020 100644 --- a/.gitignore +++ b/.gitignore @@ -1 +1,3 @@ -/vendor +!.gitignore +composer.phar +vendor diff --git a/composer.json b/composer.json index bcf5062..43c0ac9 100644 --- a/composer.json +++ b/composer.json @@ -1,7 +1,8 @@ { "name": "mirzaev/vk", "type": "framework", - "description": "PHP-фреймворк ВКонтакте", + "description": "Framework for vk.com API", + "readme": "README.md", "keywords": [ "vk", "api" diff --git a/mirzaev/vk/system/api/settings.php b/mirzaev/vk/system/api/settings.php index 831192c..28ee29f 100644 --- a/mirzaev/vk/system/api/settings.php +++ b/mirzaev/vk/system/api/settings.php @@ -237,6 +237,8 @@ class settings implements ArrayAccess // Жесткая запись $this->settings['attachments'] = $value; + + return; } if (empty($this->settings['attachments']) || count($this->settings['attachments']) < 10) { @@ -244,6 +246,8 @@ class settings implements ArrayAccess // Запись (конкатенация) $this->settings['attachments'][] = $value; + + return; } throw new Exception('Превышено ограничение на 10 вложений', 500); @@ -251,6 +255,8 @@ class settings implements ArrayAccess // Запись по ключу или смещению $this->settings[$offset] = $value; + + return; } }