fmsystem-commits
[Top][All Lists]
Advanced

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

[Fmsystem-commits] [17619]


From: nelson . guerra
Subject: [Fmsystem-commits] [17619]
Date: Wed, 17 Jan 2018 18:36:14 -0500 (EST)

Revision: 17619
          http://svn.sv.gnu.org/viewvc/?view=rev&root=fmsystem&revision=17619
Author:   nelson224
Date:     2018-01-17 18:36:14 -0500 (Wed, 17 Jan 2018)
Log Message:
-----------


Modified Paths:
--------------
    branches/dev-syncromind/addressbook/inc/export/phpgw_LDIF

Modified: branches/dev-syncromind/addressbook/inc/export/phpgw_LDIF
===================================================================
--- branches/dev-syncromind/addressbook/inc/export/phpgw_LDIF   2018-01-17 
23:35:58 UTC (rev 17618)
+++ branches/dev-syncromind/addressbook/inc/export/phpgw_LDIF   2018-01-17 
23:36:14 UTC (rev 17619)
@@ -171,14 +171,18 @@
                        {
                                $entries .= 'dn: '.$buffer[$i]['dn'] . "\n";
                                reset($this->export);
-                               while (list($name,$value)=each($this->export))
-                               {
+                               //while (list($name,$value)=each($this->export))
+                                if (is_array($this->export))
+                                {
+                                    foreach($this->export as $name => $value)
+                                    {
                                        if (($value != 'dn') && 
!empty($buffer[$i][$value]))
                                        {
                                                $tmp = 
ereg_replace(',','',$buffer[$i][$value]);
                                                $entries .= $value . ': ' . 
$tmp . "\n";
                                        }
-                               }
+                                    }
+                                }
                                $entries .= 'objectClass: person' . "\n";
                                $entries .= 'objectClass: organizationalPerson' 
. "\n";
                                $entries .= 'objectClass: inetOrgPerson' . "\n";




reply via email to

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