compatibility: fallback to legacy zot if OWA succeeds but no data['msg'] is present
This commit is contained in:
parent
5057a4bd4c
commit
b21a5c3ce9
@ -5100,7 +5100,7 @@ function zot_reply_notify($data) {
|
|||||||
// handle zot6 delivery
|
// handle zot6 delivery
|
||||||
|
|
||||||
$zret = zot6_check_sig();
|
$zret = zot6_check_sig();
|
||||||
if($zret['success'] && $zret['hubloc'] && $zret['hubloc']['hubloc_guid'] === $data['sender']['guid']) {
|
if($zret['success'] && $zret['hubloc'] && $zret['hubloc']['hubloc_guid'] === $data['sender']['guid'] && $data['msg']) {
|
||||||
logger('zot6_delivery',LOGGER_DEBUG);
|
logger('zot6_delivery',LOGGER_DEBUG);
|
||||||
logger('zot6_data: ' . print_r($data,true),LOGGER_DATA);
|
logger('zot6_data: ' . print_r($data,true),LOGGER_DATA);
|
||||||
$import = [ 'success' => true, 'pickup' => [ [ 'notify' => $data, 'message' => json_decode($data['msg'],true) ] ] ];
|
$import = [ 'success' => true, 'pickup' => [ [ 'notify' => $data, 'message' => json_decode($data['msg'],true) ] ] ];
|
||||||
|
Reference in New Issue
Block a user