Hopefully fixing the avatar bug.

Cette révision appartient à :
2016-05-20 05:19:58 +02:00
Parent b6e46cf0b7
révision 372eadd0d9
2 fichiers modifiés avec 3 ajouts et 2 suppressions

1
.gitignore externe
Voir le fichier

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

Voir le fichier

@@ -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;