fmsystem-commits
[Top][All Lists]
Advanced

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

[Fmsystem-commits] [17612]


From: nelson . guerra
Subject: [Fmsystem-commits] [17612]
Date: Wed, 17 Jan 2018 18:21:42 -0500 (EST)

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


Modified Paths:
--------------
    branches/dev-syncromind/addressbook/inc/export/Outlook_CSV_-_Deutsch

Modified: branches/dev-syncromind/addressbook/inc/export/Outlook_CSV_-_Deutsch
===================================================================
--- branches/dev-syncromind/addressbook/inc/export/Outlook_CSV_-_Deutsch        
2018-01-17 17:54:38 UTC (rev 17611)
+++ branches/dev-syncromind/addressbook/inc/export/Outlook_CSV_-_Deutsch        
2018-01-17 23:21:42 UTC (rev 17612)
@@ -185,10 +185,14 @@
                {
                        // Build the header for the file (field list)
                        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)
+                            {
                                $entries .= $value . ',';
-                       }
+                            }
+                        }
                        $entries = substr($entries,0,-1);
                        $entries .= "\r\n";
 
@@ -197,10 +201,14 @@
                        for ($i=0;$i<count($this->ids);$i++)
                        {
                                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)
+                                    {
                                        $entries .= '"'.$buffer[$i][$value] . 
'",';
-                               }
+                                    }
+                                }
                                $entries = substr($entries,0,-1);
                                $entries .= "\r\n";
                        }




reply via email to

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