fmsystem-commits
[Top][All Lists]
Advanced

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

[Fmsystem-commits] [17624]


From: nelson . guerra
Subject: [Fmsystem-commits] [17624]
Date: Wed, 17 Jan 2018 18:49:35 -0500 (EST)

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


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

Modified: branches/dev-syncromind/addressbook/inc/export/Outlook_CSV_-_Dutch
===================================================================
--- branches/dev-syncromind/addressbook/inc/export/Outlook_CSV_-_Dutch  
2018-01-17 23:49:20 UTC (rev 17623)
+++ branches/dev-syncromind/addressbook/inc/export/Outlook_CSV_-_Dutch  
2018-01-17 23:49:35 UTC (rev 17624)
@@ -93,11 +93,15 @@
                function import_end_record($buffer)
                {
                        $buffer[$this->id]='';
-                       while ( list($name, $value) = 
each($this->currentrecord))
-                       {
+                       //while ( list($name, $value) = 
each($this->currentrecord))
+                        if (is_array($this->currentrecord))
+                        {
+                            foreach($this->currentrecord as $name => $value)
+                            {
                                $buffer[$this->id][$name] = $value;
                                //echo '<br>'.$name.' => '.$value;
-                       }
+                            }
+                        }
                        return $buffer;
                }
 
@@ -107,11 +111,15 @@
                        //echo '<br>'; 
                        for ($i=1;$i<=count($buffer);$i++)
                        {
-                               while ( list($name,$value) = @each($buffer[$i]) 
)
-                               {
+                               //while ( list($name,$value) = 
@each($buffer[$i]) )
+                                if (is_array($buffer[$i]))
+                                {
+                                    foreach($buffer[$i] as $name => $value)
+                                    {
                                        //echo '<br>'.$i.': '.$name.' => 
'.$value;
                                        $entry[$i][$name] = $value;
-                               }
+                                    }
+                                }
                                $entry[$i]['email_type']      = 'INTERNET';
                                $entry[$i]['email_home_type'] = 'INTERNET';
                                $entry[$i]['adr_one_type']    = 'intl';




reply via email to

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