diff options
author | Max Kostikov <max@kostikov.co> | 2021-03-08 19:22:17 +0000 |
---|---|---|
committer | Max Kostikov <max@kostikov.co> | 2021-03-08 19:22:17 +0000 |
commit | c9ec5043b9d1638da9ea1d66b55a84c961920ec1 (patch) | |
tree | 40a6ec204395ee3d3e5952031a40ca693bf14589 /include | |
parent | 0c5a7ab19b9ccb76aebe006626bacb35b1e1c66b (diff) | |
download | volse-hubzilla-c9ec5043b9d1638da9ea1d66b55a84c961920ec1.tar.gz volse-hubzilla-c9ec5043b9d1638da9ea1d66b55a84c961920ec1.tar.bz2 volse-hubzilla-c9ec5043b9d1638da9ea1d66b55a84c961920ec1.zip |
Check if HTTP port is defined
Diffstat (limited to 'include')
-rw-r--r-- | include/queue_fn.php | 2 |
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' ", |