aboutsummaryrefslogtreecommitdiffstats
path: root/include/queue_fn.php
diff options
context:
space:
mode:
authorMax Kostikov <max@kostikov.co>2021-03-08 19:22:17 +0000
committerMax Kostikov <max@kostikov.co>2021-03-08 19:22:17 +0000
commitc9ec5043b9d1638da9ea1d66b55a84c961920ec1 (patch)
tree40a6ec204395ee3d3e5952031a40ca693bf14589 /include/queue_fn.php
parent0c5a7ab19b9ccb76aebe006626bacb35b1e1c66b (diff)
downloadvolse-hubzilla-c9ec5043b9d1638da9ea1d66b55a84c961920ec1.tar.gz
volse-hubzilla-c9ec5043b9d1638da9ea1d66b55a84c961920ec1.tar.bz2
volse-hubzilla-c9ec5043b9d1638da9ea1d66b55a84c961920ec1.zip
Check if HTTP port is defined
Diffstat (limited to 'include/queue_fn.php')
-rw-r--r--include/queue_fn.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/include/queue_fn.php b/include/queue_fn.php
index b72730d2f..b505a5b22 100644
--- a/include/queue_fn.php
+++ b/include/queue_fn.php
@@ -132,7 +132,7 @@ function queue_deliver($outq, $immediate = false) {
$base = null;
$h = parse_url($outq['outq_posturl']);
if($h !== false)
- $base = $h['scheme'] . '://' . $h['host'] . (($h['port']) ? ':' . $h['port'] : '');
+ $base = $h['scheme'] . '://' . $h['host'] . (array_key_exists('port', $h) ? ':' . $h['port'] : '');
if(($base) && ($base !== z_root()) && ($immediate)) {
$y = q("select site_update, site_dead from site where site_url = '%s' ",