don't try to deliver empty hashes
This commit is contained in:
parent
9cb1ac3de5
commit
853322e7d2
@ -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])
|
||||
|
@ -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) {
|
||||
|
Reference in New Issue
Block a user