Commit d3e8394b authored by Tino Goratsch's avatar Tino Goratsch

fixed a bug when initially saving the to be activated social services

parent c7c55ec0
......@@ -77,9 +77,10 @@ class UpdateServicesOnSettingsSaveBeforeListener
{
$currentSettings = $this->settings->getSettings(Schema::MODULE_NAME);
$newSettings = $event->getData();
$currentServices = \unserialize($currentSettings['services']);
return \array_diff(
\unserialize($currentSettings['services']),
is_array($currentServices) ? $currentServices : [],
\unserialize($newSettings['services'])
);
}
......
......@@ -4,6 +4,10 @@ All notable changes to this project will be documented in this file.
The format is based on [Keep a Changelog](http://keepachangelog.com/)
and this project adheres to [Semantic Versioning](http://semver.org/).
## [Unreleased]
### Fixed
- fixed a bug when initially saving the to be activated social services
## [4.25.0] - 2018-03-16
### Added
- added a new module: Social sharing using the shariff library
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment