X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;f=include%2Fprofile_update.php;h=0fcf3617fbeb0d80c5923b4485c589ab0e27cefa;hb=37fccee503341ce1363e57cc81d465ef224e702d;hp=61eaee75d92ae64641c567f4dcdf55704d938079;hpb=43d5876e8b35d53a0bef5248c5d63e5bc209dbbf;p=friendica.git diff --git a/include/profile_update.php b/include/profile_update.php index 61eaee75d9..0fcf3617fb 100644 --- a/include/profile_update.php +++ b/include/profile_update.php @@ -7,12 +7,12 @@ require_once('include/queue_fn.php'); function profile_change() { $a = get_app(); - + if(! local_user()) return; // $url = $a->get_baseurl() . '/profile/' . $a->user['nickname']; -// if($url && strlen(get_config('system','directory_submit_url'))) +// if($url && strlen(get_config('system','directory'))) // proc_run('php',"include/directory.php","$url"); $recips = q("SELECT `id`,`name`,`network`,`pubkey`,`notify` FROM `contact` WHERE `network` = '%s' @@ -25,11 +25,11 @@ function profile_change() { return; $r = q("SELECT `profile`.`uid` AS `profile_uid`, `profile`.* , `user`.* FROM `profile` - LEFT JOIN `user` ON `profile`.`uid` = `user`.`uid` + INNER JOIN `user` ON `profile`.`uid` = `user`.`uid` WHERE `user`.`uid` = %d AND `profile`.`is-default` = 1 LIMIT 1", intval(local_user()) ); - + if(! count($r)) return; $profile = $r[0];