From 853322e7d2734ad459a4e5740f3f1806ed55532e Mon Sep 17 00:00:00 2001 From: redmatrix Date: Thu, 19 May 2016 20:48:40 -0700 Subject: [PATCH] don't try to deliver empty hashes --- Zotlabs/Daemon/Deliver.php | 3 +++ include/network.php | 3 +++ 2 files changed, 6 insertions(+) diff --git a/Zotlabs/Daemon/Deliver.php b/Zotlabs/Daemon/Deliver.php index 7a321a1f8..dbc311cf5 100644 --- a/Zotlabs/Daemon/Deliver.php +++ b/Zotlabs/Daemon/Deliver.php @@ -17,6 +17,9 @@ class Deliver { for($x = 1; $x < $argc; $x ++) { + if(! $argv[$x]) + continue; + $dresult = null; $r = q("select * from outq where outq_hash = '%s' limit 1", dbesc($argv[$x]) diff --git a/include/network.php b/include/network.php index f80244f8f..a2e655d92 100644 --- a/include/network.php +++ b/include/network.php @@ -1916,6 +1916,9 @@ function do_delivery($deliveries) { $deliver = array(); foreach($deliveries as $d) { + if(! $d) + continue; + $deliver[] = $d; if(count($deliver) >= $deliveries_per_process) {