Do not call the function itself to check if it exists (2)

Co-authored-by: luk3yx <luk3yx@users.noreply.github.com>
This commit is contained in:
Athozus 2024-08-07 14:55:31 +02:00 committed by GitHub
parent 8753c92cab
commit 58604e4da1
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -175,7 +175,7 @@ end
local function repair_storage()
-- iterate through players
-- get_keys() was introduced in 5.7
if mail.storage:get_keys() then
if mail.storage.get_keys then
for _, k in ipairs(mail.storage:get_keys()) do
if string.sub(k,1,5) == "mail/" then
local p = string.sub(k, 6)