mod_storage_sql: Dynamically replace backquotes with double quotes when connecting...
[prosody.git] / core / storagemanager.lua
index 3be193a231696c29564bf7a278c5aa01fa011c87..43409960347fe2baef73023092208de416052724 100644 (file)
@@ -71,7 +71,8 @@ function open(host, store, typ)
                driver_name = config.get(host, "core", "default_storage");
                driver = load_driver(host, driver_name);
                if not driver then
-                       if storage or driver_name then
+                       if driver_name or (type(storage) == "string"
+                       or type(storage) == "table" and storage[store]) then
                                log("warn", "Falling back to default driver for %s storage on %s", store, host);
                        end
                        driver_name = "internal";