From: Michael Vogel Date: Thu, 28 Jan 2016 11:35:07 +0000 (+0100) Subject: Added documentation X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=410ebb4cbf0a674967a8599647a042922ea3d5ef;p=friendica.git Added documentation --- diff --git a/include/Photo.php b/include/Photo.php index e0cb23008a..3f1608d3ec 100644 --- a/include/Photo.php +++ b/include/Photo.php @@ -720,6 +720,15 @@ function guess_image_type($filename, $fromcurl=false) { } +/** + * @brief Updates the avatar links in a contact only if needed + * + * @param string $avatar Link to avatar picture + * @param int $uid User id of contact owner + * @param int $cid Contact id + * + * @return array Returns array of the different avatar sizes + */ function update_contact_avatar($avatar,$uid,$cid) { $r = q("SELECT `avatar`, `photo`, `thumb`, `micro` FROM `contact` WHERE `id` = %d LIMIT 1", intval($cid));