diff --git a/src/libclient/accountmodel.cpp b/src/libclient/accountmodel.cpp
index e4655a8ecaff715375f9a122ec0bfba0fd433434..b1e681123ba997fd7af320815328df19da3e07f6 100644
--- a/src/libclient/accountmodel.cpp
+++ b/src/libclient/accountmodel.cpp
@@ -839,8 +839,8 @@ account::Info::fromDetails(const MapStringString& details)
     confProperties.upnpEnabled = toBool(details[ConfProperties::UPNP_ENABLED]);
     confProperties.hasCustomUserAgent = toBool(details[ConfProperties::HAS_CUSTOM_USER_AGENT]);
     confProperties.allowIncoming = toBool(details[ConfProperties::ALLOW_CERT_FROM_HISTORY])
-                                   | toBool(details[ConfProperties::ALLOW_CERT_FROM_CONTACT])
-                                   | toBool(details[ConfProperties::ALLOW_CERT_FROM_TRUSTED]);
+                                   || toBool(details[ConfProperties::ALLOW_CERT_FROM_CONTACT])
+                                   || toBool(details[ConfProperties::ALLOW_CERT_FROM_TRUSTED]);
     confProperties.allowIPAutoRewrite = toBool(details[ConfProperties::ACCOUNT_IP_AUTO_REWRITE]);
     confProperties.archivePassword = details[ConfProperties::ARCHIVE_PASSWORD];
     confProperties.archiveHasPassword = toBool(details[ConfProperties::ARCHIVE_HAS_PASSWORD]);