Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion gamemode/core/libs/sh_character.lua
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ if (SERVER) then
-- them into a table so they only have to be fetched once
if (#nut.char.names < 1) then
nut.db.query("SELECT _id, _name FROM nut_characters", function(data)
if (#data > 0) then
if (data and #data > 0) then
for k, v in pairs(data) do
nut.char.names[v._id] = v._name
end
Expand Down