fmsystem-commits
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Fmsystem-commits] [7575] demo/rental: testcase on toArray()


From: Sigurd Nes
Subject: [Fmsystem-commits] [7575] demo/rental: testcase on toArray()
Date: Mon, 12 Sep 2011 06:37:55 +0000

Revision: 7575
          http://svn.sv.gnu.org/viewvc/?view=rev&root=fmsystem&revision=7575
Author:   sigurdne
Date:     2011-09-12 06:37:51 +0000 (Mon, 12 Sep 2011)
Log Message:
-----------
demo/rental: testcase on toArray()

Modified Paths:
--------------
    trunk/phpgwapi/inc/class.xmlhelper.inc.php

Modified: trunk/phpgwapi/inc/class.xmlhelper.inc.php
===================================================================
--- trunk/phpgwapi/inc/class.xmlhelper.inc.php  2011-09-11 13:42:06 UTC (rev 
7574)
+++ trunk/phpgwapi/inc/class.xmlhelper.inc.php  2011-09-12 06:37:51 UTC (rev 
7575)
@@ -39,7 +39,10 @@
                                        $numeric = 1;
                                        $key = $rootNodeName;
                                }
-
+                               if(is_object($value))
+                               {
+                                       $value = get_object_vars($value);
+                               }
                                // delete any char not allowed in XML element 
names
                                $key = preg_replace('/[^a-z0-9\-\_\.\:]/i', '', 
$key);
 




reply via email to

[Prev in Thread] Current Thread [Next in Thread]