aboutsummaryrefslogtreecommitdiffstats
path: root/include/zot.php
diff options
context:
space:
mode:
authorredmatrix <redmatrix@redmatrix.me>2015-11-29 15:23:29 -0800
committerredmatrix <redmatrix@redmatrix.me>2015-11-29 15:23:29 -0800
commit9f90806027568666d6cd60eb41ec66d278fe05cd (patch)
treeba957c643ffd6637f7926835e98482ae64dc4ab6 /include/zot.php
parentd3aa50c9c3d530af8b0384267c5db5a05f9ff49a (diff)
downloadvolse-hubzilla-9f90806027568666d6cd60eb41ec66d278fe05cd.tar.gz
volse-hubzilla-9f90806027568666d6cd60eb41ec66d278fe05cd.tar.bz2
volse-hubzilla-9f90806027568666d6cd60eb41ec66d278fe05cd.zip
log whatever is showing up in the delivery hash array since it seems that one site has something unusual there and it is throwing errors.
Diffstat (limited to 'include/zot.php')
-rw-r--r--include/zot.php4
1 files changed, 4 insertions, 0 deletions
diff --git a/include/zot.php b/include/zot.php
index c0d537eb9..e575f3d05 100644
--- a/include/zot.php
+++ b/include/zot.php
@@ -1246,6 +1246,10 @@ function zot_import($arr, $sender_url) {
$no_dups = array();
if($deliveries) {
foreach($deliveries as $d) {
+ if(! is_array($d)) {
+ logger('Delivery hash array is not an array: ' . print_r($d,true));
+ continue;
+ }
if(! in_array($d['hash'],$no_dups))
$no_dups[] = $d['hash'];
}