fmsystem-commits
[Top][All Lists]
Advanced

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

[Fmsystem-commits] [17540]


From: nelson . guerra
Subject: [Fmsystem-commits] [17540]
Date: Wed, 10 Jan 2018 20:23:22 -0500 (EST)

Revision: 17540
          http://svn.sv.gnu.org/viewvc/?view=rev&root=fmsystem&revision=17540
Author:   nelson224
Date:     2018-01-10 20:23:22 -0500 (Wed, 10 Jan 2018)
Log Message:
-----------


Modified Paths:
--------------
    branches/dev-syncromind/property/inc/class.sodocument.inc.php

Modified: branches/dev-syncromind/property/inc/class.sodocument.inc.php
===================================================================
--- branches/dev-syncromind/property/inc/class.sodocument.inc.php       
2018-01-11 01:23:07 UTC (rev 17539)
+++ branches/dev-syncromind/property/inc/class.sodocument.inc.php       
2018-01-11 01:23:22 UTC (rev 17540)
@@ -490,23 +490,29 @@
                                $document['link'] = str_replace('\\', '/', 
$document['link']);
                        }
 
-                       while (is_array($document['location']) && 
list($input_name, $value) = each($document['location']))
-                       {
-                               if ($value)
-                               {
-                                       $cols[] = $input_name;
-                                       $vals[] = $value;
-                               }
-                       }
+                        if (is_array($document['location']))
+                        {
+                            foreach($document['location'] as $input_name => 
$value)
+                            {
+                                    if ($value)
+                                    {
+                                            $cols[] = $input_name;
+                                            $vals[] = $value;
+                                    }
+                            }
+                        }
 
-                       while (is_array($document['extra']) && 
list($input_name, $value) = each($document['extra']))
-                       {
-                               if ($value)
-                               {
-                                       $cols[] = $input_name;
-                                       $vals[] = $value;
-                               }
-                       }
+                        if (is_array($document['extra']))
+                        {
+                            foreach($document['extra'] as $input_name => 
$value)
+                            {
+                                    if ($value)
+                                    {
+                                            $cols[] = $input_name;
+                                            $vals[] = $value;
+                                    }
+                            }
+                        }
 
                        if ($cols)
                        {




reply via email to

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