mirror of
https://github.com/friendica/friendica
synced 2025-04-27 11:10:12 +00:00
Several more warnings ... (#5340)
* Some more warnings removed * Even more warnings ... * Will it ever end? ;-) * Avoid warning in dbstructure * Origin and OStatus ... * There are more warnings solved ... yeah! * And again ... * We are not done yet * And more ... * And some new places ... * And more in the feeds * Avoid some more * And some backend stuff * Notifications cleared * Some more stuff * and again ... * It's getting fewer ... * Some warnings had been hidden in the notifications * Fix the fix * And another missing one ... * We need the owner here, not the user * Forgotten user * And more ... * And some more warnings disappeared ... * Some more frontend warnings * Some backend warnings removed * Fixed sidebar for "vier" * And more ... * Some more ... * And something for "remote self" * Am I stuck in an endless loop? * Fix: Clear tag and file field on update * Preset page content
This commit is contained in:
parent
32ef5623ab
commit
0360f7197a
48 changed files with 415 additions and 267 deletions
|
@ -40,11 +40,11 @@ class Profile
|
|||
{
|
||||
$location = '';
|
||||
|
||||
if ($profile['locality']) {
|
||||
if (!empty($profile['locality'])) {
|
||||
$location .= $profile['locality'];
|
||||
}
|
||||
|
||||
if ($profile['region'] && ($profile['locality'] != $profile['region'])) {
|
||||
if (!empty($profile['region']) && (defaults($profile, 'locality', '') != $profile['region'])) {
|
||||
if ($location) {
|
||||
$location .= ', ';
|
||||
}
|
||||
|
@ -52,7 +52,7 @@ class Profile
|
|||
$location .= $profile['region'];
|
||||
}
|
||||
|
||||
if ($profile['country-name']) {
|
||||
if (!empty($profile['country-name'])) {
|
||||
if ($location) {
|
||||
$location .= ', ';
|
||||
}
|
||||
|
@ -307,6 +307,8 @@ class Profile
|
|||
$connect = false;
|
||||
}
|
||||
|
||||
$profile_url = '';
|
||||
|
||||
// Is the local user already connected to that user?
|
||||
if ($connect && local_user()) {
|
||||
if (isset($profile['url'])) {
|
||||
|
@ -437,9 +439,9 @@ class Profile
|
|||
'fullname' => $profile['name'],
|
||||
'firstname' => $firstname,
|
||||
'lastname' => $lastname,
|
||||
'photo300' => $profile['contact_photo'],
|
||||
'photo100' => $profile['contact_thumb'],
|
||||
'photo50' => $profile['contact_micro'],
|
||||
'photo300' => defaults($profile, 'contact_photo', ''),
|
||||
'photo100' => defaults($profile, 'contact_thumb', ''),
|
||||
'photo50' => defaults($profile, 'contact_micro', ''),
|
||||
];
|
||||
} else {
|
||||
$diaspora = false;
|
||||
|
@ -497,7 +499,7 @@ class Profile
|
|||
$p['photo'] = proxy_url($p['photo'], false, PROXY_SIZE_SMALL);
|
||||
}
|
||||
|
||||
$p['url'] = Contact::magicLink($p['url']);
|
||||
$p['url'] = Contact::magicLink(defaults($p, 'url', $profile_url));
|
||||
|
||||
$tpl = get_markup_template('profile_vcard.tpl');
|
||||
$o .= replace_macros($tpl, [
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue