aboutsummaryrefslogtreecommitdiffstats
path: root/include
diff options
context:
space:
mode:
authorMario <mario@mariovavti.com>2021-03-10 20:35:13 +0000
committerMario <mario@mariovavti.com>2021-03-10 20:35:13 +0000
commit689603de8240619f801daeb56c0de0197f66cedd (patch)
tree6299f1d1d6631a9b777f26b6cb205459ea7eb781 /include
parentb51049227f28bc1badf9387ea5bff16bfd7debcd (diff)
parent0a86efc6317d64173ec9785c6edeeedaffbae04e (diff)
downloadvolse-hubzilla-689603de8240619f801daeb56c0de0197f66cedd.tar.gz
volse-hubzilla-689603de8240619f801daeb56c0de0197f66cedd.tar.bz2
volse-hubzilla-689603de8240619f801daeb56c0de0197f66cedd.zip
Merge branch 'dev' of https://framagit.org/hubzilla/core into dev
Diffstat (limited to 'include')
-rw-r--r--include/bookmarks.php2
-rw-r--r--include/queue_fn.php2
2 files changed, 2 insertions, 2 deletions
diff --git a/include/bookmarks.php b/include/bookmarks.php
index 145119347..207cf5a33 100644
--- a/include/bookmarks.php
+++ b/include/bookmarks.php
@@ -73,6 +73,6 @@ function get_bookmark_link($observer) {
$h = @parse_url($observer['xchan_url']);
if($h)
- return $h['scheme'] . '://' . $h['host'] . (($h['port']) ? ':' . $h['port'] : '') . '/rbmark?f=';
+ return $h['scheme'] . '://' . $h['host'] . (isset($h['port']) ? ':' . $h['port'] : '') . '/rbmark?f=';
return '';
}
diff --git a/include/queue_fn.php b/include/queue_fn.php
index b505a5b22..1e8171b1d 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'] . (array_key_exists('port', $h) ? ':' . $h['port'] : '');
+ $base = $h['scheme'] . '://' . $h['host'] . (isset($h['port']) ? ':' . $h['port'] : '');
if(($base) && ($base !== z_root()) && ($immediate)) {
$y = q("select site_update, site_dead from site where site_url = '%s' ",