From 3dc7cbb3e7c45c860caee48774002d71f74bc0b4 Mon Sep 17 00:00:00 2001 From: nobody Date: Wed, 7 Apr 2021 19:40:26 -0700 Subject: [PATCH] util/pconfig: when called with no arguments this script returns a list of local channels. That's fine, but we really shouldn't include deleted channels --- util/pconfig | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/util/pconfig b/util/pconfig index 5cc551e25..a30e69960 100755 --- a/util/pconfig +++ b/util/pconfig @@ -91,7 +91,7 @@ if($argc == 2) { } if($argc == 1) { - $r = q("select channel_id, channel_name from channel"); + $r = q("select channel_id, channel_name from channel where channel_removed = 0"); if($r) { foreach($r as $rr) { echo sprintf('%4u %s', $rr['channel_id'], $rr['channel_name']) . PHP_EOL;