aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAntonio Gallo <tonicucoz@gmail.com>2011-07-22 09:07:26 +0000
committerAntonio Gallo <tonicucoz@gmail.com>2011-07-22 09:07:26 +0000
commit158ff22512cc4eaddacc596c1ddee8d4a8fb2b9d (patch)
tree1517a9a6998c354f3485e76643316fe05c677d2d
parent4a872aa6512b3336f5c8464f7c79d6b5c90b38d8 (diff)
improved the creation of the xml database
-rw-r--r--h-source/Application/Controllers/DownloadController.php10
1 files changed, 7 insertions, 3 deletions
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<it_works>".$row['hardware']['fingerprint_works']."</it_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<it_works>".$row['hardware']['ethernet_card_works']."</it_works>\n";
+ }
+
+ if ($type !== "notebook")
{
$xml .= "\t\t<driver>".$row['hardware']['driver']."</driver>\n";
}