fix mail settings save function - ref #8854
Merge pull request #9025 from owncloud/fix-mail-settings

fix mail settings save function - ref #8854