[PATCH 4/4] Fix bug when have only one criteria

David Durieux d.durieux at siprossii.com
Fri Aug 20 21:05:52 UTC 2010


---
 .../Inventory/DirectoryStorageInventory.class.php  |    4 ++++
 1 files changed, 4 insertions(+), 0 deletions(-)

diff --git a/Classes/Storage/Inventory/DirectoryStorageInventory.class.php b/Classes/Storage/Inventory/DirectoryStorageInventory.class.php
index d3263b6..48a4c10 100644
--- a/Classes/Storage/Inventory/DirectoryStorageInventory.class.php
+++ b/Classes/Storage/Inventory/DirectoryStorageInventory.class.php
@@ -109,6 +109,10 @@ class DirectoryStorageInventory extends StorageInventory
                 }
             }
         }
+        if($falseCriteriaNb == $this->_configs["maxFalse"])
+        {
+            return false;
+        }
         if (isset($internalId[2]))
         {
             return $internalId[2];
-- 
1.7.1


--MP_/588BW=eT46D5iQi6cnuB8Os--



More information about the Fusioninventory-devel mailing list