aboutsummaryrefslogtreecommitdiffstats
path: root/Zotlabs
diff options
context:
space:
mode:
authorredmatrix <git@macgirvin.com>2016-02-25 14:34:30 -0800
committerredmatrix <git@macgirvin.com>2016-02-25 14:34:30 -0800
commit7972de13caf21647c8cc2e82c499a344f7191a22 (patch)
tree240881fffc3c89e128d83fa94ef7014eefdfd970 /Zotlabs
parentebfa1a12b9cc3d939ed49a7f66e5687267a409d3 (diff)
downloadvolse-hubzilla-7972de13caf21647c8cc2e82c499a344f7191a22.tar.gz
volse-hubzilla-7972de13caf21647c8cc2e82c499a344f7191a22.tar.bz2
volse-hubzilla-7972de13caf21647c8cc2e82c499a344f7191a22.zip
backtrace openssl_verify errors so that we can find bad keys - as there is very little relevant context available at this level.
Diffstat (limited to 'Zotlabs')
-rw-r--r--Zotlabs/Zot/Receiver.php7
1 files changed, 4 insertions, 3 deletions
diff --git a/Zotlabs/Zot/Receiver.php b/Zotlabs/Zot/Receiver.php
index 238de1332..71d57eb35 100644
--- a/Zotlabs/Zot/Receiver.php
+++ b/Zotlabs/Zot/Receiver.php
@@ -41,9 +41,10 @@ class Receiver {
if(! $this->messagetype)
$this->error = true;
- $this->sender = ((array_key_exists('sender',$this->data)) ? $this->data['sender'] : null);
- $this->recipients = ((array_key_exists('recipients',$this->data)) ? $this->data['recipients'] : null);
-
+ if($this->data) {
+ $this->sender = ((array_key_exists('sender',$this->data)) ? $this->data['sender'] : null);
+ $this->recipients = ((array_key_exists('recipients',$this->data)) ? $this->data['recipients'] : null);
+ }
if($this->sender)
$this->ValidateSender();