diff --git a/storage/sqlite/sqlite.js b/storage/sqlite/sqlite.js index fc04aad2..c0648db6 100644 --- a/storage/sqlite/sqlite.js +++ b/storage/sqlite/sqlite.js @@ -56,7 +56,7 @@ module.exports = function(RED) { if (Array.isArray(msg.payload)) { if (msg.payload.length === (msg.topic.split('$').length - 1) ) { bind = msg.payload; } else { bind = []; } - } + } else { bind = []; } node.mydbConfig.db.all(msg.topic, bind, function(err, row) { if (err) { node.error(err,msg); } else {