Skip to content

Commit

Permalink
Update dmarcts-report-viewer-report-data.php
Browse files Browse the repository at this point in the history
OK, this should resolve the PHP 8 issue.
  • Loading branch information
techsneeze authored Jul 15, 2023
1 parent dc69ebf commit 4730985
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion dmarcts-report-viewer-report-data.php
Original file line number Diff line number Diff line change
Expand Up @@ -142,7 +142,7 @@ function tmpl_reportData($reportnumber, $reports, $host_lookup = 1) {
$query = $dbh->query($sql);
foreach($query as $row) {
if ( $row['ip'] ) {
$ip = long2ip($row['ip']);
$ip = long2ip(intval($row['ip']));
} elseif ( $row['ip6'] ) {
if ( $dbtype == 'pgsql') {
$row['ip6'] = stream_get_contents($row['ip6']);
Expand Down

0 comments on commit 4730985

Please sign in to comment.