Bugfix: Gesamtsumme der Stimmen auf /beliebt wieder korrekt. Auf Film-Seite, inaktive Nutzer gekennzeichnet.

This commit is contained in:
2016-05-20 05:39:35 +02:00
parent 372eadd0d9
commit d0b73e92ec
4 changed files with 7 additions and 7 deletions

View File

@@ -70,9 +70,9 @@ class User extends Eloquent implements UserInterface, RemindableInterface {
public function setSetting($key, $value) {
$settings = json_decode($this->settings);
if(is_null($settings)) {
$settings = array();
$settings = new stdClass();
}
$settings[$key] = $value;
$settings->$key = $value;
$this->settings = json_encode($settings);
}