Permalink
Browse files

Merge branch 'darkrpFPP'

  • Loading branch information...
2 parents 2aa2052 + c4960c8 commit c2d81e1c1494773e7539bc375b00d195d3e4294c @FPtje committed Dec 8, 2012
Showing with 2 additions and 2 deletions.
  1. +2 −2 gamemode/fpp/server/FPP_Settings.lua
@@ -267,7 +267,7 @@ local function RetrieveBlocked()
for k,v in pairs(FPP.Blocked) do
for a,b in pairs(v) do
count = count + 1
- DB.Query("INSERT INTO FPP_BLOCKED1 VALUES(".. count ..", " .. sql.SQLStr(k) .. ", " .. sql.SQLStr(b) .. ");")
+ DB.Query("REPLACE INTO FPP_BLOCKED1 VALUES(".. count ..", " .. sql.SQLStr(k) .. ", " .. sql.SQLStr(b) .. ");")
end
end
DB.Commit()
@@ -341,7 +341,7 @@ end
local function RetrieveGroups()
DB.Query("SELECT * FROM FPP_GROUPS3;", function(data)
if type(data) ~= "table" then
- DB.Query("INSERT INTO FPP_GROUPS3 VALUES('default', 1);")
+ DB.Query("REPLACE INTO FPP_GROUPS3 VALUES('default', 1);")
FPP.Groups['default'] = {}
FPP.Groups['default'].tools = {}
FPP.Groups['default'].allowdefault = true

0 comments on commit c2d81e1

Please sign in to comment.