X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;ds=sidebyside;f=update.php;h=751e15b587bf7dbbe06012210f00eca3530cc017;hb=6287e466507f88be22d77796660f806089b62af2;hp=326c08414e48b766b9c78501287d2cae1842e286;hpb=6f7510550d190b7704637f056c9482be7b02a567;p=friendica.git diff --git a/update.php b/update.php index 326c08414e..751e15b587 100644 --- a/update.php +++ b/update.php @@ -1,12 +1,13 @@ isValid()) { - $ph->scaleImage(48); - $ph->store($rr['uid'],$rr['contact-id'],$rr['resource-id'],$rr['filename'],$rr['album'],6,(($rr['profile']) ? 1 : 0)); + $Image = new Image($rr['data']); + if ($Image->isValid()) { + $Image->scaleDown(48); + Photo::store($Image, $rr['uid'],$rr['contact-id'],$rr['resource-id'],$rr['filename'],$rr['album'],6,(($rr['profile']) ? 1 : 0)); } } }