aboutsummaryrefslogtreecommitdiff
path: root/h-source
diff options
context:
space:
mode:
Diffstat (limited to 'h-source')
-rw-r--r--h-source/Application/Controllers/SearchController.php3
-rw-r--r--h-source/Application/Include/hardware.php2
2 files changed, 4 insertions, 1 deletions
diff --git a/h-source/Application/Controllers/SearchController.php b/h-source/Application/Controllers/SearchController.php
index 7fda506..acc4a22 100644
--- a/h-source/Application/Controllers/SearchController.php
+++ b/h-source/Application/Controllers/SearchController.php
@@ -129,7 +129,8 @@ class SearchController extends BaseController
while(current($lspciArray) !== false)
{
$item = current($lspciArray);
- if (stristr($item,'Slot'))
+ if( preg_match( '/Slot\:(.*)([0-9a-zA-Z]{2}\:[0-9a-zA-Z]{2}\.[0-9a-zA-Z]{1})/i', $item ) )
+// if (stristr($item,'Slot'))
{
$temp = array();
// class
diff --git a/h-source/Application/Include/hardware.php b/h-source/Application/Include/hardware.php
index 02b6752..816e7f1 100644
--- a/h-source/Application/Include/hardware.php
+++ b/h-source/Application/Include/hardware.php
@@ -63,6 +63,8 @@ class Hardware
'0401' => 'acquisitioncards',
'0480' => 'acquisitioncards',
'0805' => 'sdcardreaders',
+ '0703' => 'modems',
+ '0104' => 'raidadapters',
);
public static $icons = array(