From 62200aa5ebef749db6c41ed59cda9516f9fa659c Mon Sep 17 00:00:00 2001 From: laf Date: Tue, 30 Sep 2014 01:50:23 +0100 Subject: [PATCH] Fixed some scrutinizer warnings --- includes/functions.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/includes/functions.php b/includes/functions.php index c3c64b301..d699e3a75 100755 --- a/includes/functions.php +++ b/includes/functions.php @@ -459,11 +459,12 @@ function isSNMPable($device) } } -function isPingable($hostname,$device_id) +function isPingable($hostname,$device_id = FALSE) { global $config; $status = shell_exec($config['fping'] . " -e $hostname 2>/dev/null"); + $response = array(); if (strstr($status, "alive")) { $response['result'] = TRUE;