1
0
Fork 0

Update HomeSettings

This commit is contained in:
Daniel Supernault 2018-11-15 20:59:10 -07:00
parent 226d810159
commit d898d3f43c
No known key found for this signature in database
GPG Key ID: 0DEF1C662C9033F7
1 changed files with 3 additions and 3 deletions

View File

@ -42,7 +42,7 @@ trait HomeSettings
$changes = false;
$name = strip_tags($request->input('name'));
$bio = Purify::clean($request->input('bio'));
$bio = $request->filled('bio') ? Purify::clean($request->input('bio')) : null;
$website = $request->input('website');
$email = $request->input('email');
$user = Auth::user();
@ -80,12 +80,12 @@ trait HomeSettings
$profile->name = $name;
}
if (!$profile->website || $profile->website != $website) {
if ($profile->website != $website) {
$changes = true;
$profile->website = $website;
}
if (!$profile->bio || !$profile->bio != $bio) {
if ($profile->bio != $bio) {
$changes = true;
$profile->bio = $bio;
}