Fix a white space and a empty uuid

This commit is contained in:
Mark Crane
2014-08-29 08:33:15 +00:00
parent 2accf75870
commit 3d131cc514
+3 -2
View File
@@ -123,7 +123,8 @@
end end
--disable follow me --disable follow me
if (enabled == "true" and follow_me_uuid ~= nil) then if (follow_me_uuid ~= nil) then
if (enabled == "true") then
sql = "update v_follow_me set "; sql = "update v_follow_me set ";
sql = sql .. "follow_me_enabled = 'false' "; sql = sql .. "follow_me_enabled = 'false' ";
sql = sql .. "where domain_uuid = '"..domain_uuid.."' "; sql = sql .. "where domain_uuid = '"..domain_uuid.."' ";
@@ -133,6 +134,7 @@
end end
dbh:query(sql); dbh:query(sql);
end end
end
--update the extension --update the extension
sql = "update v_extensions set "; sql = "update v_extensions set ";
@@ -151,7 +153,6 @@
end end
dbh:query(sql); dbh:query(sql);
--clear the cache --clear the cache
if (extension ~= nil) then if (extension ~= nil) then
api:execute("memcache", "delete directory:"..extension.."@"..domain_name); api:execute("memcache", "delete directory:"..extension.."@"..domain_name);