naughty: localize obj
Signed-off-by: Gregor Best <gbe@ring0.de> Signed-off-by: Julien Danjou <julien@danjou.info>
This commit is contained in:
parent
268fe91434
commit
e6b99ae374
|
@ -298,7 +298,7 @@ function notify(args)
|
|||
|
||||
-- replace notification if needed
|
||||
if args.replaces_id then
|
||||
obj = getById(args.replaces_id)
|
||||
local obj = getById(args.replaces_id)
|
||||
if obj then
|
||||
-- destroy this and ...
|
||||
destroy(obj)
|
||||
|
|
Loading…
Reference in New Issue