From b104237e953dfc860bee165bc4e45b474f5144e0 Mon Sep 17 00:00:00 2001 From: Antonio Gallo Date: Sat, 16 Jun 2012 22:39:49 +0000 Subject: fixed a bug and improved the lspci search function --- h-source/Application/Controllers/SearchController.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'h-source/Application/Controllers/SearchController.php') 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 -- cgit v1.2.3