Hopefully fixing the avatar bug.

Este commit está contenido en:
2016-05-20 05:19:58 +02:00
padre b6e46cf0b7
commit 372eadd0d9
Se han modificado 2 ficheros con 3 adiciones y 2 borrados

1
.gitignore vendido
Ver fichero

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

Ver fichero

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