aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--Zotlabs/Daemon/Deliver.php3
-rw-r--r--include/network.php3
2 files changed, 6 insertions, 0 deletions
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) {