fix legacy zot dreport not passing the is_storable check
This commit is contained in:
@@ -93,11 +93,16 @@ class DReport {
|
||||
if(! $c)
|
||||
return false;
|
||||
|
||||
// legacy zot recipients add a space and their name to the xchan. remove it if true.
|
||||
|
||||
$legacy_recipient = strpos($dr['recipient'], ' ');
|
||||
if($legacy_recipient !== false)
|
||||
$rxchan = substr($dr['recipient'], 0 , $legacy_recipient);
|
||||
else
|
||||
$rxchan = $dr['recipient'];
|
||||
|
||||
// is the recipient one of our connections, or do we want to store every report?
|
||||
|
||||
|
||||
$rxchan = $dr['recipient'];
|
||||
$pcf = get_pconfig($c[0]['channel_id'],'system','dreport_store_all');
|
||||
if($pcf)
|
||||
return true;
|
||||
|
Reference in New Issue
Block a user