Code cleanup to solve a few minor issues

This commit is contained in:
markjcrane
2023-05-16 16:14:39 -06:00
parent c827f6bf21
commit 10c39f9bcb
2 changed files with 4 additions and 4 deletions
@@ -205,7 +205,7 @@
$tmp = event_socket_request($fp, 'api status');
$matches = Array();
preg_match("/(\d+)\s+session\(s\)\s+\-\speak/", $tmp, $matches);
$channels = $matches[1] ? $matches[1] : 0;
$channels = !empty($matches[1]) ? $matches[1] : 0;
$tr_link = "href='".PROJECT_PATH."/app/calls_active/calls_active.php'";
echo "<tr ".$tr_link.">\n";
echo "<td valign='top' class='".$row_style[$c]." hud_text'><a ".$tr_link.">".$text['label-channels']."</a></td>\n";