Hopefully fixing the avatar bug.
This commit is contained in:
1
.gitignore
vendored
1
.gitignore
vendored
@@ -4,3 +4,4 @@ composer.phar
|
|||||||
composer.lock
|
composer.lock
|
||||||
.DS_Store
|
.DS_Store
|
||||||
/app/config/app.php
|
/app/config/app.php
|
||||||
|
/public/img/avatars/*
|
||||||
|
@@ -69,7 +69,7 @@ class User extends Eloquent implements UserInterface, RemindableInterface {
|
|||||||
|
|
||||||
public function setSetting($key, $value) {
|
public function setSetting($key, $value) {
|
||||||
$settings = json_decode($this->settings);
|
$settings = json_decode($this->settings);
|
||||||
if(!is_null($settings)) {
|
if(is_null($settings)) {
|
||||||
$settings = array();
|
$settings = array();
|
||||||
}
|
}
|
||||||
$settings[$key] = $value;
|
$settings[$key] = $value;
|
||||||
@@ -91,4 +91,4 @@ class User extends Eloquent implements UserInterface, RemindableInterface {
|
|||||||
public function news() {
|
public function news() {
|
||||||
return $this->hasMany('News', 'author');
|
return $this->hasMany('News', 'author');
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user