fmsystem-commits
[Top][All Lists]
Advanced

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

[Fmsystem-commits] [17625]


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

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


Modified Paths:
--------------
    branches/dev-syncromind/addressbook/inc/export/OpenOffice_-_writer

Modified: branches/dev-syncromind/addressbook/inc/export/OpenOffice_-_writer
===================================================================
--- branches/dev-syncromind/addressbook/inc/export/OpenOffice_-_writer  
2018-01-17 23:49:35 UTC (rev 17624)
+++ branches/dev-syncromind/addressbook/inc/export/OpenOffice_-_writer  
2018-01-17 23:49:48 UTC (rev 17625)
@@ -224,8 +224,11 @@
                                                {
                                                        $subcats = array();
                                                }
-                                               while (list($key,$contactscat) 
= each($cats))
-                                               {
+                                               //while 
(list($key,$contactscat) = each($cats))
+                                                if (is_array($cats))
+                                                {
+                                                    foreach($cats as $key => 
$contactscat)
+                                                    {
                                                        if ($contactscat && 
in_array(intval($contactscat),$subcats))
                                                        {
                                                                //$catinfo = 
$this->cat->return_single(intval($contactscat));
@@ -235,7 +238,8 @@
                                                                $catname .= 
$categories->id2name(intval($contactscat)) . '; ';
                                                        }
                                                        //$c++;
-                                               }
+                                                    }
+                                                }
                                                //echo "<pre>cat_info: "; 
print_r($catname); echo "</pre> \n";
                                                
//$entries[$entry['contact_id']]['cat_id'] = explode(',',$cats);
                                                
$entries[$entry['contact_id']]['cat_id'] = $catname;




reply via email to

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