diff options
author | Hans Hagen <pragma@wxs.nl> | 2012-09-25 21:44:00 +0200 |
---|---|---|
committer | Hans Hagen <pragma@wxs.nl> | 2012-09-25 21:44:00 +0200 |
commit | 55ce9de27314a53bb5583cf482a2c4c64e3d1f76 (patch) | |
tree | 54918f8483de1304d9d908ff9961399b4850fcad /tex/context/base/util-sql-tickets.lua | |
parent | bd88b34201a32e8c936f518336016f0abae49a09 (diff) | |
download | context-55ce9de27314a53bb5583cf482a2c4c64e3d1f76.tar.gz |
beta 2012.09.25 21:44
Diffstat (limited to 'tex/context/base/util-sql-tickets.lua')
-rw-r--r-- | tex/context/base/util-sql-tickets.lua | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/tex/context/base/util-sql-tickets.lua b/tex/context/base/util-sql-tickets.lua index ad885e34e..1dfe1e376 100644 --- a/tex/context/base/util-sql-tickets.lua +++ b/tex/context/base/util-sql-tickets.lua @@ -164,12 +164,12 @@ function tickets.create(db,ticket) report("created: %s at %s",token,osfulltime(time)) end - local r = result and result[1] + local id = result and result.id - if r then + if id then return { - id = r.id, + id = id, token = token, subtoken = subtoken, created = time, |