From 483f733bd925889073943fcebc7c48cb58d82b84 Mon Sep 17 00:00:00 2001 From: Tom Laermans Date: Mon, 14 Jun 2010 14:15:14 +0000 Subject: [PATCH] fix bug in hardware string for dell laser git-svn-id: http://www.observium.org/svn/observer/trunk@1171 61d68cd4-352d-0410-923a-c4978735b2b8 --- includes/polling/device-dell-laser.inc.php | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/includes/polling/device-dell-laser.inc.php b/includes/polling/device-dell-laser.inc.php index 034632bdc..3382b42e6 100644 --- a/includes/polling/device-dell-laser.inc.php +++ b/includes/polling/device-dell-laser.inc.php @@ -6,6 +6,9 @@ $version = "Engine " . trim($version,')'); - $hardware = substr($hardware,0,strpos($hardware,';')); + if (strstr($hardware ,';')) + { + $hardware = substr($hardware,0,strpos($hardware,';')); + } ?>