aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorredmatrix <redmatrix@redmatrix.me>2015-09-22 04:24:54 -0700
committerredmatrix <redmatrix@redmatrix.me>2015-09-22 04:24:54 -0700
commitf84151e1fe830dca59ae83de429670dfde76b7d2 (patch)
tree2b20f34ec7fa015783e3da77bc341935d27577ac
parent4b13f0e025b08263d7231845bc76034d9adc7847 (diff)
downloadvolse-hubzilla-f84151e1fe830dca59ae83de429670dfde76b7d2.tar.gz
volse-hubzilla-f84151e1fe830dca59ae83de429670dfde76b7d2.tar.bz2
volse-hubzilla-f84151e1fe830dca59ae83de429670dfde76b7d2.zip
fix foreach warning
-rw-r--r--include/zot.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/include/zot.php b/include/zot.php
index fb55da0fa..d0f4f5680 100644
--- a/include/zot.php
+++ b/include/zot.php
@@ -957,7 +957,7 @@ function zot_process_response($hub, $arr, $outq) {
logger('zot_process_response: headers: ' . print_r($arr['header'],true), LOGGER_DATA);
}
- if(array_key_exists('delivery_report',$x)) {
+ if(array_key_exists('delivery_report',$x) && is_array($x['delivery_report'])) {
foreach($x['delivery_report'] as $xx) {
if(is_array($xx) && array_key_exists('message_id',$xx)) {
q("insert into dreport ( dreport_mid, dreport_site, dreport_recip, dreport_result, dreport_time, dreport_xchan ) values ( '%s', '%s','%s','%s','%s','%s' ) ",