Fix for create md5 of section. I have made a problem with using export($array), so I replace with serialize function and it works better ;)
David ++ Le Sat, 21 Aug 2010 17:40:11 +0200 David DURIEUX <[email protected]> a écrit: >Another patch to put section data into an array instead in a string >separated by "<br />" > > >Le Fri, 20 Aug 2010 23:18:01 +0200 >David DURIEUX <[email protected]> a écrit: > >>Hello, >> >>I have made 3 modifications of structure (Patch 0001 to 0003) with >>using PHP CONSTANTS to use lib with external program with other >>folders, etc... >> >> >>For patch 0004, it's a patch when you use only one criteria (because >>it return an error but no error in this case) >> >>So now, we can use lib in GLPI ;) >> >>Enjoy ^^ >> >>Best regards, >> >>David DURIEUX >>Tel : +33 (0)4.74.04.81.34 >>Port : +33 (0)6.34.99.45.18 >>Mail : [email protected] >>Site Web : http://www.siprossii.com/ >> >>SIPROSSII >>847 route de Frans (Créacité) >>69400 Villefranche sur Saône >>FRANCE
>From de9689a77f44d99d6ace1deaf0a34fa6d9e45c14 Mon Sep 17 00:00:00 2001 From: David Durieux <[email protected]> Date: Sun, 22 Aug 2010 12:29:04 +0200 Subject: [PATCH] Fix create hash of sections --- Classes/Action/InventoryAction.class.php | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diff --git a/Classes/Action/InventoryAction.class.php b/Classes/Action/InventoryAction.class.php index 92dc61e..7a5b01e 100644 --- a/Classes/Action/InventoryAction.class.php +++ b/Classes/Action/InventoryAction.class.php @@ -170,7 +170,7 @@ class InventoryAction extends Action //sectionId initialization, we will affect id after hook createSection return value. array_push($xmlSections, (array( "sectionId" => 0, - "sectionHash" => md5(extract($sectionData)), + "sectionHash" => md5(serialize($sectionData)), "sectionName" => $section->getName(), "sectionData" => $sectionData))); } -- 1.7.1
_______________________________________________ Fusioninventory-devel mailing list [email protected] http://lists.alioth.debian.org/mailman/listinfo/fusioninventory-devel
