fmsystem-commits
[Top][All Lists]
Advanced

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

[Fmsystem-commits] [17542]


From: nelson . guerra
Subject: [Fmsystem-commits] [17542]
Date: Wed, 10 Jan 2018 21:12:35 -0500 (EST)

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


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

Modified: branches/dev-syncromind/property/inc/class.soagreement.inc.php
===================================================================
--- branches/dev-syncromind/property/inc/class.soagreement.inc.php      
2018-01-11 02:12:18 UTC (rev 17541)
+++ branches/dev-syncromind/property/inc/class.soagreement.inc.php      
2018-01-11 02:12:35 UTC (rev 17542)
@@ -852,9 +852,12 @@
                        //_debug_array($values);
                        $values['new_index'] = 
$this->floatval($values['new_index']);
                        $this->db->transaction_begin();
-                       while (is_array($values['select']) && list(, 
$activity_id) = each($values['select']))
-                       {
 
+                        if (is_array($values['select']))
+                        {
+                            foreach($values['select'] as $activity_id)
+                            {
+
                                if ($values['id'][$activity_id] > 0)
                                {
                                        $this->db->query("UPDATE 
fm_activity_price_index set current_index = NULL WHERE agreement_id=" . 
intval($values['agreement_id']) . ' AND activity_id=' . intval($activity_id));
@@ -865,7 +868,8 @@
 
                                        $receipt['message'][] = array('msg' => 
lang('Activity %1 has been updated for index', $activity_id));
                                }
-                       }
+                            }
+                        }
 
                        $this->db->transaction_commit();
 




reply via email to

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