restructure the conditions if gnetwork and gaddr is empty
This commit is contained in:
parent
a726056c5f
commit
8806688d68
|
@ -850,14 +850,14 @@ class NotificationsManager {
|
||||||
// get the missing data data from other sources
|
// get the missing data data from other sources
|
||||||
if ($arr['gnetwork'] == "" || $arr['gaddr'] == "") {
|
if ($arr['gnetwork'] == "" || $arr['gaddr'] == "") {
|
||||||
$ret = get_contact_details_by_url($arr['url']);
|
$ret = get_contact_details_by_url($arr['url']);
|
||||||
}
|
|
||||||
|
|
||||||
if ($arr['gnetwork'] == "") {
|
if ($arr['gnetwork'] == "" && $ret['network'] != "") {
|
||||||
$arr['gnetwork'] = $ret['network'];
|
$arr['gnetwork'] = $ret['network'];
|
||||||
}
|
}
|
||||||
if ($arr['gaddr'] == "") {
|
if ($arr['gaddr'] == "" && $ret['addr'] != "") {
|
||||||
$arr['gaddr'] = $ret['addr'];
|
$arr['gaddr'] = $ret['addr'];
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
return $arr;
|
return $arr;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue
Block a user