possible for DB to return hublocs with no sitekey
This commit is contained in:
parent
b325b2c003
commit
d256551907
@ -250,7 +250,7 @@ class Queue {
|
|||||||
$host_crypto = null;
|
$host_crypto = null;
|
||||||
|
|
||||||
if($channel && $base) {
|
if($channel && $base) {
|
||||||
$h = q("select hubloc_sitekey, site_crypto from hubloc left join site on hubloc_url = site_url where site_url = '%s' order by hubloc_id desc limit 1",
|
$h = q("select hubloc_sitekey, site_crypto from hubloc left join site on hubloc_url = site_url where site_url = '%s' and hubloc_sitekey != '' order by hubloc_id desc limit 1",
|
||||||
dbesc($base)
|
dbesc($base)
|
||||||
);
|
);
|
||||||
if($h) {
|
if($h) {
|
||||||
|
@ -286,7 +286,7 @@ function queue_deliver($outq, $immediate = false) {
|
|||||||
$host_crypto = null;
|
$host_crypto = null;
|
||||||
|
|
||||||
if($channel && $base) {
|
if($channel && $base) {
|
||||||
$h = q("select hubloc_sitekey, site_crypto from hubloc left join site on hubloc_url = site_url where site_url = '%s' order by hubloc_id desc limit 1",
|
$h = q("select hubloc_sitekey, site_crypto from hubloc left join site on hubloc_url = site_url where site_url = '%s' and hubloc_sitekey != '' order by hubloc_id desc limit 1",
|
||||||
dbesc($base)
|
dbesc($base)
|
||||||
);
|
);
|
||||||
if($h) {
|
if($h) {
|
||||||
|
Reference in New Issue
Block a user