diff options
author | Mario <mario@mariovavti.com> | 2021-10-03 12:22:33 +0000 |
---|---|---|
committer | Mario <mario@mariovavti.com> | 2021-10-03 12:22:33 +0000 |
commit | d6f81e139aeb52e3068959c41d2ef6ce77e97232 (patch) | |
tree | 2b040b6fcd7f054edc6cc3a519af0829da389750 | |
parent | 58ee147653a759d1a4e41d5978e29a66cb58384e (diff) | |
download | volse-hubzilla-d6f81e139aeb52e3068959c41d2ef6ce77e97232.tar.gz volse-hubzilla-d6f81e139aeb52e3068959c41d2ef6ce77e97232.tar.bz2 volse-hubzilla-d6f81e139aeb52e3068959c41d2ef6ce77e97232.zip |
make sure to return if we have no xchan here
-rw-r--r-- | include/connections.php | 3 |
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)) { |