From 33994ed63861686f175efb4c0afe70a7064cb669 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Miguel=20A=CC=81ngel=20Dura=CC=81n=20Garci=CC=81a?= Date: Mon, 12 Aug 2013 18:06:56 +0200 Subject: [PATCH] #161 - meta.js problem with empty config var If config is empty, give to it an empty object value. --- src/meta.js | 1 + 1 file changed, 1 insertion(+) diff --git a/src/meta.js b/src/meta.js index 87c11fe3f0..3e261a5cb9 100644 --- a/src/meta.js +++ b/src/meta.js @@ -9,6 +9,7 @@ var utils = require('./../public/src/utils.js'), get: function(callback) { RDB.hgetall('config', function(err, config) { if (!err) { + config = config || {}; config.status = 'ok'; callback(config); } else {