mirror of
https://github.com/NodeBB/NodeBB.git
synced 2025-11-10 07:55:46 +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) {
|
||||
RDB.hgetall('config', function(err, config) {
|
||||
if (!err) {
|
||||
config = config || {};
|
||||
config.status = 'ok';
|
||||
callback(config);
|
||||
} else {
|
||||
|
||||
Reference in New Issue
Block a user