Hopefully fixing the avatar bug.

Dieser Commit ist enthalten in:
2016-05-20 05:19:58 +02:00
Ursprung b6e46cf0b7
Commit 372eadd0d9
2 geänderte Dateien mit 3 neuen und 2 gelöschten Zeilen

1
.gitignore vendored
Datei anzeigen

@@ -4,3 +4,4 @@ composer.phar
composer.lock
.DS_Store
/app/config/app.php
/public/img/avatars/*

Datei anzeigen

@@ -69,7 +69,7 @@ class User extends Eloquent implements UserInterface, RemindableInterface {
public function setSetting($key, $value) {
$settings = json_decode($this->settings);
if(!is_null($settings)) {
if(is_null($settings)) {
$settings = array();
}
$settings[$key] = $value;
@@ -91,4 +91,4 @@ class User extends Eloquent implements UserInterface, RemindableInterface {
public function news() {
return $this->hasMany('News', 'author');
}
}
}