diff options
author | Mario <mario@mariovavti.com> | 2021-10-03 12:22:33 +0000 |
---|---|---|
committer | Mario <mario@mariovavti.com> | 2021-10-03 14:38:29 +0200 |
commit | f45cb38cd3e3811f5e53970c641f596bdfd06960 (patch) | |
tree | ad2ee933c93e6e40346bf9c0614a9058c938d0e6 | |
parent | 7ba58208f250e8823a320597e7b3b1067375aa8f (diff) | |
download | volse-hubzilla-f45cb38cd3e3811f5e53970c641f596bdfd06960.tar.gz volse-hubzilla-f45cb38cd3e3811f5e53970c641f596bdfd06960.tar.bz2 volse-hubzilla-f45cb38cd3e3811f5e53970c641f596bdfd06960.zip |
make sure to return if we have no xchan here
(cherry picked from commit d6f81e139aeb52e3068959c41d2ef6ce77e97232)
-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)) { |