diff --git a/public/templates/admin/groups.tpl b/public/templates/admin/groups.tpl
index a31c507040..2637bfedc2 100644
--- a/public/templates/admin/groups.tpl
+++ b/public/templates/admin/groups.tpl
@@ -90,8 +90,7 @@
diff --git a/public/templates/admin/users.tpl b/public/templates/admin/users.tpl
index 6534705653..929a95c97c 100644
--- a/public/templates/admin/users.tpl
+++ b/public/templates/admin/users.tpl
@@ -14,7 +14,7 @@
User not found!
-
+
diff --git a/public/themes/vanilla/users.less b/public/themes/vanilla/users.less
index fb70b7ca81..40aaa859f6 100644
--- a/public/themes/vanilla/users.less
+++ b/public/themes/vanilla/users.less
@@ -22,4 +22,32 @@
margin:5px;
}
}
+
+ &.admin {
+ #users-container {
+ padding: 0;
+ }
+
+ .users-box{
+ display: inline-block;
+ margin-top: 20px;
+ text-align: center;
+ vertical-align: top;
+ white-space: nowrap;
+ text-overflow: ellipsis;
+ overflow: hidden;
+ height: auto;
+ max-width: 125px;
+
+ img {
+ width:80px;
+ height:80px;
+ }
+
+ a {
+ margin:5px;
+ padding: 6px 12px;
+ }
+ }
+ }
}
\ No newline at end of file
diff --git a/src/redis.js b/src/redis.js
index 91bd583f85..c66c720788 100644
--- a/src/redis.js
+++ b/src/redis.js
@@ -2,14 +2,13 @@
var redis = require('redis'),
utils = require('./../public/src/utils.js'),
winston = require('winston'),
- nconf = require('nconf');
+ nconf = require('nconf'),
+ redis_socket_or_host = nconf.get('redis:host');
- var redis_socket_or_host = nconf.get('redis:host')
- if(redis_socket_or_host.indexOf('/')>=0) {
+ if (redis_socket_or_host && redis_socket_or_host.indexOf('/')>=0) {
/* If redis.host contains a path name character, use the unix dom sock connection. ie, /tmp/redis.sock */
RedisDB.exports = redis.createClient(nconf.get('redis:host'))
- }
- else {
+ } else {
/* Else, connect over tcp/ip */
RedisDB.exports = redis.createClient(nconf.get('redis:port'), nconf.get('redis:host'));
}