set to default value with config is missing (#7320)

This commit is contained in:
Saturnino Abril
2017-08-31 01:54:16 +08:00
committed by Joram Wilander
parent 4c1f467442
commit 651dd33b29
41 changed files with 252 additions and 195 deletions

View File

@@ -580,7 +580,7 @@ func getProfileImage(c *Context, w http.ResponseWriter, r *http.Request) {
}
func uploadProfileImage(c *Context, w http.ResponseWriter, r *http.Request) {
if len(utils.Cfg.FileSettings.DriverName) == 0 {
if len(*utils.Cfg.FileSettings.DriverName) == 0 {
c.Err = model.NewLocAppError("uploadProfileImage", "api.user.upload_profile_user.storage.app_error", nil, "")
c.Err.StatusCode = http.StatusNotImplemented
return