Return empty table instead of nil in peer load with empty paramater

squeeze-backports
Victor Seva 13 years ago
parent e50b421690
commit bed951c459

@ -19,12 +19,16 @@ NGCPPeerPrefs_MT = { __index = NGCPPeerPrefs }
function NGCPPeerPrefs:caller_load(uuid) function NGCPPeerPrefs:caller_load(uuid)
if uuid then if uuid then
return self:_load("caller",uuid) return self:_load("caller",uuid)
else
return {}
end end
end end
function NGCPPeerPrefs:callee_load(uuid) function NGCPPeerPrefs:callee_load(uuid)
if uuid then if uuid then
return self:_load("callee",uuid) return self:_load("callee",uuid)
else
return {}
end end
end end

Loading…
Cancel
Save