From 5bd41e3f8f947faae7b8f48ebfe4b6dad1df0926 Mon Sep 17 00:00:00 2001 From: Roman Kelesidis Date: Thu, 10 Aug 2023 15:19:46 +0700 Subject: [PATCH] Update modcp.php --- modcp.php | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/modcp.php b/modcp.php index 25e97490..c5e6e0a1 100644 --- a/modcp.php +++ b/modcp.php @@ -673,10 +673,10 @@ switch ($mode) bb_die($lang['NO_SUCH_POST']); } - if (!$ip_this_post = decode_ip($post_row['poster_ip'])) - { - $ip_this_post = $lang['NOT_AVAILABLE']; - } + if (!$ip_this_post = decode_ip($post_row['poster_ip'])) + { + $ip_this_post = $lang['NOT_AVAILABLE']; + } $ip_this_post = ($rdns_ip_num == $ip_this_post) ? gethostbyaddr($ip_this_post) : $ip_this_post; $poster_id = $post_row['poster_id']; @@ -711,10 +711,10 @@ switch ($mode) continue; } - if (!$ip = decode_ip($row['poster_ip'])) - { - $ip = $lang['NOT_AVAILABLE']; - } + if (!$ip = decode_ip($row['poster_ip'])) + { + $ip = $lang['NOT_AVAILABLE']; + } $ip = ( $rdns_ip_num == $ip || $rdns_ip_num == 'all') ? gethostbyaddr($ip) : $ip; $template->assign_block_vars('iprow', array(