Some code cleanup. Fixes the tests.

This commit is contained in:
James Cole
2016-04-25 18:43:09 +02:00
parent 53c80aaef8
commit eb5e55a272
32 changed files with 64 additions and 54 deletions

View File

@@ -111,9 +111,10 @@ class Preferences
$user = Auth::user();
if (is_null($user)) {
// make new preference, return it:
$pref = new Preference;
$pref = new Preference;
$pref->name = $name;
$pref->data = $value;
return $pref;
}