aboutsummaryrefslogtreecommitdiffstats
path: root/include
diff options
context:
space:
mode:
authorMario <mario@mariovavti.com>2021-10-03 12:22:33 +0000
committerMario <mario@mariovavti.com>2021-10-03 12:22:33 +0000
commitd6f81e139aeb52e3068959c41d2ef6ce77e97232 (patch)
tree2b040b6fcd7f054edc6cc3a519af0829da389750 /include
parent58ee147653a759d1a4e41d5978e29a66cb58384e (diff)
downloadvolse-hubzilla-d6f81e139aeb52e3068959c41d2ef6ce77e97232.tar.gz
volse-hubzilla-d6f81e139aeb52e3068959c41d2ef6ce77e97232.tar.bz2
volse-hubzilla-d6f81e139aeb52e3068959c41d2ef6ce77e97232.zip
make sure to return if we have no xchan here
Diffstat (limited to 'include')
-rw-r--r--include/connections.php3
1 files changed, 3 insertions, 0 deletions
diff --git a/include/connections.php b/include/connections.php
index 59020051c..6dba06189 100644
--- a/include/connections.php
+++ b/include/connections.php
@@ -272,6 +272,9 @@ function mark_orphan_hubsxchans() {
function remove_all_xchan_resources($xchan, $channel_id = 0) {
+ if(!$xchan)
+ return;
+
if(intval($channel_id)) {