change logic for consistency
This commit is contained in:
parent
ad6eb15eac
commit
a1ac507a94
@ -96,10 +96,13 @@ class DReport {
|
|||||||
// legacy zot recipients add a space and their name to the xchan. remove it if true.
|
// legacy zot recipients add a space and their name to the xchan. remove it if true.
|
||||||
|
|
||||||
$legacy_recipient = strpos($dr['recipient'], ' ');
|
$legacy_recipient = strpos($dr['recipient'], ' ');
|
||||||
if($legacy_recipient !== false)
|
if($legacy_recipient !== false) {
|
||||||
$rxchan = substr($dr['recipient'], 0 , $legacy_recipient);
|
$legacy_recipient_parts = explode(' ', $dr['recipient'], 2);
|
||||||
else
|
$rxchan = $legacy_recipient_parts[0];
|
||||||
|
}
|
||||||
|
else {
|
||||||
$rxchan = $dr['recipient'];
|
$rxchan = $dr['recipient'];
|
||||||
|
}
|
||||||
|
|
||||||
// is the recipient one of our connections, or do we want to store every report?
|
// is the recipient one of our connections, or do we want to store every report?
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user