Comparison

mod_storage_gdbm/mod_storage_gdbm.lua @ 1635:b877b75eb973

mod_storage_gdbm: Fix name of empty table
author Kim Alvefur <zash@zash.se>
date Wed, 25 Mar 2015 17:52:31 +0100
parent 1634:25441bd8b344
child 1653:1fe899527ee5
comparison
equal deleted inserted replaced
1634:25441bd8b344 1635:b877b75eb973
97 local deserialize = { 97 local deserialize = {
98 stanza = st.deserialize; 98 stanza = st.deserialize;
99 }; 99 };
100 100
101 function archive:find(username, query) 101 function archive:find(username, query)
102 query = query or empty_query; 102 query = query or empty;
103 local meta = self:get(username) or empty; 103 local meta = self:get(username) or empty;
104 local prefix = (username or "@") .. "#"; 104 local prefix = (username or "@") .. "#";
105 local r = query.reverse; 105 local r = query.reverse;
106 local d = t(r, -1, 1); 106 local d = t(r, -1, 1);
107 local s = meta[t(r, query.before, query.after)]; 107 local s = meta[t(r, query.before, query.after)];