Fixed some scrutinizer warnings

This commit is contained in:
laf
2014-09-30 01:50:23 +01:00
parent 8ea7a16e3e
commit 62200aa5eb

View File

@ -459,11 +459,12 @@ function isSNMPable($device)
} }
} }
function isPingable($hostname,$device_id) function isPingable($hostname,$device_id = FALSE)
{ {
global $config; global $config;
$status = shell_exec($config['fping'] . " -e $hostname 2>/dev/null"); $status = shell_exec($config['fping'] . " -e $hostname 2>/dev/null");
$response = array();
if (strstr($status, "alive")) if (strstr($status, "alive"))
{ {
$response['result'] = TRUE; $response['result'] = TRUE;