mirror of
https://github.com/friendica/friendica
synced 2024-11-10 07:42:53 +00:00
Fix notice "Undefined index: network" and warning "strpos(): Empty needle"
This commit is contained in:
parent
6de63b3a7c
commit
46bd1704df
2 changed files with 2 additions and 2 deletions
|
@ -292,7 +292,7 @@ class PageInfo
|
||||||
$quotedUrl
|
$quotedUrl
|
||||||
)$#isx", function ($match) use ($url) {
|
)$#isx", function ($match) use ($url) {
|
||||||
// Stripping URLs with no label
|
// Stripping URLs with no label
|
||||||
if (!isset($match[1])) {
|
if (empty($match[1])) {
|
||||||
return '';
|
return '';
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -937,7 +937,7 @@ class Contact extends BaseModule
|
||||||
],
|
],
|
||||||
];
|
];
|
||||||
|
|
||||||
if (in_array($contact['network'], [Protocol::FEED, Protocol::MAIL]) && ($cid != $pcid)) {
|
if (!empty($contact['network']) && in_array($contact['network'], [Protocol::FEED, Protocol::MAIL]) && ($cid != $pcid)) {
|
||||||
$tabs[] = ['label' => DI::l10n()->t('Advanced'),
|
$tabs[] = ['label' => DI::l10n()->t('Advanced'),
|
||||||
'url' => 'contact/' . $cid . '/advanced/',
|
'url' => 'contact/' . $cid . '/advanced/',
|
||||||
'sel' => (($active_tab == self::TAB_ADVANCED) ? 'active' : ''),
|
'sel' => (($active_tab == self::TAB_ADVANCED) ? 'active' : ''),
|
||||||
|
|
Loading…
Reference in a new issue