spelling: uploaded
Signed-off-by: Josh Soref <2119212+jsoref@users.noreply.github.com>
This commit is contained in:
parent
1ebeae1420
commit
1bd6cfa2f3
1 changed files with 1 additions and 1 deletions
|
@ -181,7 +181,7 @@ class Crop extends BaseSettings
|
||||||
$havescale = $havescale || $photo['scale'] == 5;
|
$havescale = $havescale || $photo['scale'] == 5;
|
||||||
}
|
}
|
||||||
|
|
||||||
// set an already uloaded photo as profile photo
|
// set an already uploaded photo as profile photo
|
||||||
// if photo is in 'Profile Photos', change it in db
|
// if photo is in 'Profile Photos', change it in db
|
||||||
if ($photos[0]['photo-type'] == Photo::USER_AVATAR && $havescale) {
|
if ($photos[0]['photo-type'] == Photo::USER_AVATAR && $havescale) {
|
||||||
Photo::update(['profile' => false], ['uid' => DI::userSession()->getLocalUserId()]);
|
Photo::update(['profile' => false], ['uid' => DI::userSession()->getLocalUserId()]);
|
||||||
|
|
Loading…
Reference in a new issue