fmsystem-commits
[Top][All Lists]
Advanced

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

[Fmsystem-commits] [17538]


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

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


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

Modified: branches/dev-syncromind/property/inc/class.soinvestment.inc.php
===================================================================
--- branches/dev-syncromind/property/inc/class.soinvestment.inc.php     
2018-01-11 01:22:39 UTC (rev 17537)
+++ branches/dev-syncromind/property/inc/class.soinvestment.inc.php     
2018-01-11 01:22:53 UTC (rev 17538)
@@ -190,22 +190,29 @@
                        //_debug_array($values);
 
                        $receipt = array();
-                       while (is_array($values['location']) && 
list($input_name, $value) = each($values['location']))
-                       {
+                       
+                        if (is_array($document['location']))
+                        {
+                            foreach($document['location'] as $input_name => 
$value)
+                            {
                                if ($value)
                                {
                                        $cols[] = $input_name;
                                        $vals[] = $value;
                                }
+                            }
                        }
 
-                       while (is_array($values['extra']) && list($input_name, 
$value) = each($values['extra']))
-                       {
+                        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]