mirror of
https://framagit.org/hubzilla/core.git
synced 2026-06-21 00:52:33 -04:00
fix more php warnings
This commit is contained in:
@@ -657,7 +657,8 @@ class Notifier {
|
||||
|
||||
$hash = new_uuid();
|
||||
|
||||
$env = (($hub_env && $hub_env[$hub['hubloc_site_id']]) ? $hub_env[$hub['hubloc_site_id']] : '');
|
||||
$env = $hub_env[$hub['hubloc_site_id']] ?? '';
|
||||
|
||||
if ((self::$private) && (!$env)) {
|
||||
continue;
|
||||
}
|
||||
|
||||
@@ -71,7 +71,10 @@ class Zot6Handler implements IHandler {
|
||||
where xchan_hash ='%s' limit 1",
|
||||
dbesc($recip)
|
||||
);
|
||||
$x = Libzot::refresh([ 'hubloc_id_url' => $hub['hubloc_id_url']], $r[0], $force);
|
||||
|
||||
if ($r) {
|
||||
$x = Libzot::refresh([ 'hubloc_id_url' => $hub['hubloc_id_url']], $r[0], $force);
|
||||
}
|
||||
}
|
||||
}
|
||||
else {
|
||||
|
||||
@@ -384,7 +384,7 @@ function contact_remove($channel_id, $abook_id) {
|
||||
dbesc($abook['abook_xchan'])
|
||||
);
|
||||
|
||||
if ($xchan && strpos($xchan['xchan_addr'],'guest:') === 0 && strpos($abook['abook_xchan'],'.')){
|
||||
if ($xchan && strpos($xchan[0]['xchan_addr'],'guest:') === 0 && strpos($abook['abook_xchan'],'.')){
|
||||
$atoken_guid = substr($abook['abook_xchan'],strrpos($abook['abook_xchan'],'.') + 1);
|
||||
if ($atoken_guid) {
|
||||
atoken_delete_and_sync($channel_id,$atoken_guid);
|
||||
|
||||
Reference in New Issue
Block a user