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 ++) {
|
for($x = 1; $x < $argc; $x ++) {
|
||||||
|
|
||||||
|
if(! $argv[$x])
|
||||||
|
continue;
|
||||||
|
|
||||||
$dresult = null;
|
$dresult = null;
|
||||||
$r = q("select * from outq where outq_hash = '%s' limit 1",
|
$r = q("select * from outq where outq_hash = '%s' limit 1",
|
||||||
dbesc($argv[$x])
|
dbesc($argv[$x])
|
||||||
|
@ -1916,6 +1916,9 @@ function do_delivery($deliveries) {
|
|||||||
$deliver = array();
|
$deliver = array();
|
||||||
foreach($deliveries as $d) {
|
foreach($deliveries as $d) {
|
||||||
|
|
||||||
|
if(! $d)
|
||||||
|
continue;
|
||||||
|
|
||||||
$deliver[] = $d;
|
$deliver[] = $d;
|
||||||
|
|
||||||
if(count($deliver) >= $deliveries_per_process) {
|
if(count($deliver) >= $deliveries_per_process) {
|
||||||
|
Reference in New Issue
Block a user