summaryrefslogtreecommitdiff
path: root/inc
diff options
context:
space:
mode:
authorczaks <marcin@6irc.net>2016-08-15 04:13:26 +0200
committerczaks <marcin@6irc.net>2016-08-15 04:13:26 +0200
commit0b19051891e3a45a913cef38f0921cf781a0817b (patch)
tree672a9e801fcb8863c4c0e8cf2fc49a7ab9cebc52 /inc
parenta779b96370d3353c8409d64b70c724fa783ad219 (diff)
fix a notice; increase waiting time for dns
Diffstat (limited to 'inc')
-rwxr-xr-xinc/functions.php4
1 files changed, 2 insertions, 2 deletions
diff --git a/inc/functions.php b/inc/functions.php
index 043d4de7..1b336e12 100755
--- a/inc/functions.php
+++ b/inc/functions.php
@@ -892,7 +892,7 @@ function displayBan($ban) {
Element('page.html', array(
'title' => _('Banned!'),
'config' => $config,
- 'boardlist' => createBoardlist($mod),
+ 'boardlist' => createBoardlist(isset($mod) ? $mod : false),
'body' => Element('banned.html', array(
'config' => $config,
'ban' => $ban,
@@ -2514,7 +2514,7 @@ function rDNS($ip_addr) {
if (!$config['dns_system']) {
$host = gethostbyaddr($ip_addr);
} else {
- $resp = shell_exec_error('host -W 1 ' . $ip_addr);
+ $resp = shell_exec_error('host -W 3 ' . $ip_addr);
if (preg_match('/domain name pointer ([^\s]+)$/', $resp, $m))
$host = $m[1];
else