fmsystem-commits
[Top][All Lists]
Advanced

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

[Fmsystem-commits] [17558]


From: nelson . guerra
Subject: [Fmsystem-commits] [17558]
Date: Thu, 11 Jan 2018 22:54:05 -0500 (EST)

Revision: 17558
          http://svn.sv.gnu.org/viewvc/?view=rev&root=fmsystem&revision=17558
Author:   nelson224
Date:     2018-01-11 22:54:05 -0500 (Thu, 11 Jan 2018)
Log Message:
-----------


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

Modified: branches/dev-syncromind/property/inc/class.sos_agreement.inc.php
===================================================================
--- branches/dev-syncromind/property/inc/class.sos_agreement.inc.php    
2018-01-11 15:31:57 UTC (rev 17557)
+++ branches/dev-syncromind/property/inc/class.sos_agreement.inc.php    
2018-01-12 03:54:05 UTC (rev 17558)
@@ -975,7 +975,7 @@
                        if (isset($history_set) AND is_array($history_set))
                        {
                                $historylog = 
CreateObject('property.historylog', 's_agreement');
-                               while (list($attrib_id, $new_value) = 
each($history_set))
+                                foreach($history_set as $attrib_id => 
$new_value)
                                {
                                        $historylog->add('SO', 
$values['s_agreement_id'], $new_value, false, $attrib_id, false, $id);
                                }
@@ -1115,10 +1115,13 @@
                        //_debug_array($values_attribute);
                        $table = 'fm_s_agreement_detail';
 
-                       while (is_array($values['extra']) && list($column, 
$value) = each($values['extra']))
-                       {
+                        if (is_array($values['extra']))
+                        {
+                            foreach($values['extra'] as $column => $value)
+                            {
                                $value_set[$column] = $value;
-                       }
+                            }
+                        }
 
                        if (isset($values_attribute) AND 
is_array($values_attribute))
                        {




reply via email to

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