Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Merge branch 'darkrpFPP'

  • Loading branch information...
commit c2d81e1c1494773e7539bc375b00d195d3e4294c 2 parents 2aa2052 + c4960c8
@FPtje authored
Showing with 2 additions and 2 deletions.
  1. +2 −2 gamemode/fpp/server/FPP_Settings.lua
View
4 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
Please sign in to comment.
Something went wrong with that request. Please try again.