aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-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)) {