fmsystem-commits
[Top][All Lists]
Advanced

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

[Fmsystem-commits] [17535]


From: nelson . guerra
Subject: [Fmsystem-commits] [17535]
Date: Wed, 10 Jan 2018 19:55:51 -0500 (EST)

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


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

Modified: branches/dev-syncromind/property/inc/class.sorequest.inc.php
===================================================================
--- branches/dev-syncromind/property/inc/class.sorequest.inc.php        
2018-01-11 00:55:33 UTC (rev 17534)
+++ branches/dev-syncromind/property/inc/class.sorequest.inc.php        
2018-01-11 00:55:51 UTC (rev 17535)
@@ -74,10 +74,13 @@
                function update_priority_key( $values )
                {
 
-                       while (is_array($values['priority_key']) && list($id, 
$priority_key) = each($values['priority_key']))
-                       {
-                               $this->_db->query("UPDATE 
fm_request_condition_type SET priority_key = $priority_key WHERE id = $id", 
__LINE__, __FILE__);
-                       }
+                        if (is_array($values['priority_key']))
+                        {
+                            foreach($values['priority_key'] as $id => 
$priority_key)
+                            {
+                                    $this->_db->query("UPDATE 
fm_request_condition_type SET priority_key = $priority_key WHERE id = $id", 
__LINE__, __FILE__);
+                            }
+                        }
 
                        $this->update_score();
 
@@ -1196,14 +1199,20 @@
                                'recommended_year' => 
(int)$request['recommended_year'],
                        );
 
-                       while (is_array($request['location']) && 
list($input_name, $value) = each($request['location']))
-                       {
+                       if (is_array($request['location']))
+                        {
+                            foreach($request['location'] as $input_name => 
$value)
+                            {
                                $value_set[$input_name] = $value;
+                            }
                        }
 
-                       while (is_array($request['extra']) && list($input_name, 
$value) = each($request['extra']))
-                       {
+                       if (is_array($request['extra']))
+                        {
+                            foreach($request['extra'] as $input_name => $value)
+                            {
                                $value_set[$input_name] = $value;
+                            }
                        }
 
                        $data_attribute = 
$this->custom->prepare_for_db('fm_request', $values_attribute, $request['id']);




reply via email to

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