Fix problem in admin settings

Problem: Boolean settings are set to the default value instead of the value defined during the installation process.
Solution: Change if/else if order. Before the default value was checked in the if-clause which is always true. Now the stored settings value is checked at first.