X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;f=mod%2Fcrepair.php;h=5b4db09dac1f16ab7a0500ccf6b8e90e9cd90dc5;hb=d523a809a28371be100a2f60e5862cc0f16ea882;hp=6f951bdf6eade2dcd2321e63f250455892fe152c;hpb=c00772204100a44267c38f7a2533268b5dff1248;p=friendica.git diff --git a/mod/crepair.php b/mod/crepair.php index 6f951bdf6e..5b4db09dac 100644 --- a/mod/crepair.php +++ b/mod/crepair.php @@ -80,24 +80,7 @@ function crepair_post(&$a) { logger('mod-crepair: updating photo from ' . $photo); require_once("include/Photo.php"); - $photos = import_profile_photo($photo,local_user(),$contact['id']); - - $x = q("UPDATE `contact` SET `photo` = '%s', - `thumb` = '%s', - `micro` = '%s', - `name-date` = '%s', - `uri-date` = '%s', - `avatar-date` = '%s' - WHERE `id` = %d - ", - dbesc($photos[0]), - dbesc($photos[1]), - dbesc($photos[2]), - dbesc(datetime_convert()), - dbesc(datetime_convert()), - dbesc(datetime_convert()), - intval($contact['id']) - ); + update_contact_avatar($photo,local_user(),$contact['id']); } if($r)