From bb8e202db996b748950adcdd1ac79e3e0570f816 2012-04-14 15:52:25 From: HanzZ Date: 2012-04-14 15:52:25 Subject: [PATCH] Fixed default database for gatewaymode --- diff --git a/src/storagebackend.cpp b/src/storagebackend.cpp index fabaed47d9586df3f9abb813d2d52acc7caf9c6a..2247dee9a1b5b62c8507e7920a6e22070995b533 100644 --- a/src/storagebackend.cpp +++ b/src/storagebackend.cpp @@ -11,7 +11,7 @@ StorageBackend *StorageBackend::createBackend(Config *config, std::string &error StorageBackend *storageBackend = NULL; #ifdef WITH_SQLITE if (CONFIG_STRING(config, "database.type") == "sqlite3" || - (CONFIG_STRING(config, "database.type") == "none" && CONFIG_BOOL(config, "service.server_mode"))) { + (CONFIG_STRING(config, "database.type") == "none" && !CONFIG_BOOL(config, "service.server_mode"))) { storageBackend = new SQLite3Backend(config); } #else