mirror of
https://github.com/NodeBB/NodeBB.git
synced 2025-11-10 16:05:49 +01:00
#161 - meta.js problem with empty config var
If config is empty, give to it an empty object value.
This commit is contained in:
@@ -9,6 +9,7 @@ var utils = require('./../public/src/utils.js'),
|
|||||||
get: function(callback) {
|
get: function(callback) {
|
||||||
RDB.hgetall('config', function(err, config) {
|
RDB.hgetall('config', function(err, config) {
|
||||||
if (!err) {
|
if (!err) {
|
||||||
|
config = config || {};
|
||||||
config.status = 'ok';
|
config.status = 'ok';
|
||||||
callback(config);
|
callback(config);
|
||||||
} else {
|
} else {
|
||||||
|
|||||||
Reference in New Issue
Block a user