Changeset

5056:a125daa42ad4

mod_storage_sql: Return connection from connect even if already connected (thanks IRON)
author Matthew Wild <mwild1@gmail.com>
date Mon, 30 Jul 2012 18:50:46 +0100
parents 5055:d466d2088a61
children 5057:1e44678b5de2
files plugins/mod_storage_sql.lua
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/plugins/mod_storage_sql.lua	Mon Jul 30 06:01:41 2012 +0200
+++ b/plugins/mod_storage_sql.lua	Mon Jul 30 18:50:46 2012 +0100
@@ -79,8 +79,8 @@
 		connection = dbh;
 
 		connections[dburi] = dbh;
-		return connection;
 	end
+	return connection;
 end
 
 local function create_table()