Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 4 additions & 4 deletions page.cdr.php
Original file line number Diff line number Diff line change
Expand Up @@ -794,7 +794,7 @@
if ($row['cnam'] != '' || $row['cnum'] != '') {
cdr_formatCallerID($row['cnam'], $row['cnum'], $row['channel']);
} else {
cdr_formatSrc(str_replace('"" ','',(string) $row['clid']), str_replace('"" ','',(string) $row['clid']));
cdr_formatSrc(str_replace('"" ','',(string) $row['clid']));
}
cdr_formatCallerID($row['outbound_cnam'], $row['outbound_cnum'], $row['dstchannel']);
cdr_formatDID($row['did']);
Expand Down Expand Up @@ -1124,12 +1124,12 @@ function cdr_formatChannel($channel) {
echo '<td title="' . _("Channel") . ": " . $channel . '">' . $chan_type[0] . "</td>";
}

function cdr_formatSrc($src, $clid) {
if (empty($src)) {
function cdr_formatSrc($clid) {
if (empty($clid)) {
echo "<td class=\"record_col\">UNKNOWN</td>";
} else {
$clid = htmlspecialchars((string) $clid);
echo '<td title="' . _("CallerID") . ": " . $clid . '">' . $src . "</td>";
echo '<td title="' . _("CallerID") . ": " . $clid . '">' . $clid . "</td>";
}
}

Expand Down