From f45cb38cd3e3811f5e53970c641f596bdfd06960 Mon Sep 17 00:00:00 2001 From: Mario Date: Sun, 3 Oct 2021 12:22:33 +0000 Subject: make sure to return if we have no xchan here (cherry picked from commit d6f81e139aeb52e3068959c41d2ef6ce77e97232) --- include/connections.php | 3 +++ 1 file changed, 3 insertions(+) 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)) { -- cgit v1.2.3