Hopefully fixing the avatar bug.

此提交包含在:
2016-05-20 05:19:58 +02:00
父節點 b6e46cf0b7
當前提交 372eadd0d9
共有 2 個檔案被更改,包括 3 行新增2 行删除

1
.gitignore 已供應
查看文件

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

查看文件

@@ -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');
}
}
}