diff options
author | Antonio Gallo <tonicucoz@gmail.com> | 2012-06-16 22:39:49 +0000 |
---|---|---|
committer | Antonio Gallo <tonicucoz@gmail.com> | 2012-06-16 22:39:49 +0000 |
commit | b104237e953dfc860bee165bc4e45b474f5144e0 (patch) | |
tree | 4380403e407d2e5c3af5f86b12b0c42ef6ae3138 /h-source/Application/Controllers | |
parent | 49eb7cf909c9dea7a7f0ae136bc3f52699664140 (diff) |
fixed a bug and improved the lspci search function
Diffstat (limited to 'h-source/Application/Controllers')
-rw-r--r-- | h-source/Application/Controllers/SearchController.php | 3 |
1 files changed, 2 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 |