From 246b95eb50369e115ffa58939550958a014c3867 Mon Sep 17 00:00:00 2001 From: Kevin Fleshman Date: Mon, 9 Mar 2015 12:32:08 -0700 Subject: [PATCH] Whoops, $string isn't a useful thing to run a RegEx on! --- includes/discovery/os/hp.inc.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/includes/discovery/os/hp.inc.php b/includes/discovery/os/hp.inc.php index 22fbb1b7b..2683d0a45 100644 --- a/includes/discovery/os/hp.inc.php +++ b/includes/discovery/os/hp.inc.php @@ -2,7 +2,7 @@ if (!$os) { - if(preg_match('/HP [a-zA-Z0-9-]+ Switch Software Version/',$string)) { $os = "hp"; } + if(preg_match('/HP [a-zA-Z0-9-]+ Switch Software Version/',$sysDescr)) { $os = "hp"; } } ?>