From 158ff22512cc4eaddacc596c1ddee8d4a8fb2b9d Mon Sep 17 00:00:00 2001 From: Antonio Gallo Date: Fri, 22 Jul 2011 09:07:26 +0000 Subject: improved the creation of the xml database --- h-source/Application/Controllers/DownloadController.php | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) (limited to 'h-source/Application/Controllers/DownloadController.php') diff --git a/h-source/Application/Controllers/DownloadController.php b/h-source/Application/Controllers/DownloadController.php index a51fc1d..99fb06a 100644 --- a/h-source/Application/Controllers/DownloadController.php +++ b/h-source/Application/Controllers/DownloadController.php @@ -139,9 +139,13 @@ class DownloadController extends BaseController { $xml .= "\t\t".$row['hardware']['fingerprint_works']."\n"; } - - $devicesWithDriverEntry = array('printer','scanner','soundcard','webcam','bluetooth','wifi','videocard','acquisition-card','fingerprint-reader','3G-card'); - if (in_array($type,$devicesWithDriverEntry)) + + if ($type === 'ethernet-card') + { + $xml .= "\t\t".$row['hardware']['ethernet_card_works']."\n"; + } + + if ($type !== "notebook") { $xml .= "\t\t".$row['hardware']['driver']."\n"; } -- cgit v1.2.3