[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Fmsystem-commits] [17537]
From: |
nelson . guerra |
Subject: |
[Fmsystem-commits] [17537] |
Date: |
Wed, 10 Jan 2018 20:22:39 -0500 (EST) |
Revision: 17537
http://svn.sv.gnu.org/viewvc/?view=rev&root=fmsystem&revision=17537
Author: nelson224
Date: 2018-01-10 20:22:39 -0500 (Wed, 10 Jan 2018)
Log Message:
-----------
Modified Paths:
--------------
branches/dev-syncromind/property/inc/class.solocation.inc.php
Modified: branches/dev-syncromind/property/inc/class.solocation.inc.php
===================================================================
--- branches/dev-syncromind/property/inc/class.solocation.inc.php
2018-01-11 01:22:23 UTC (rev 17536)
+++ branches/dev-syncromind/property/inc/class.solocation.inc.php
2018-01-11 01:22:39 UTC (rev 17537)
@@ -1580,18 +1580,22 @@
function edit( $location, $values_attribute = array(), $type_id
= '' )
{
$receipt = array();
- while (is_array($location) && list($input_name, $value)
= each($location))
- {
- if ($value)
- {
- if ($input_name == 'cat_id')
- {
- $input_name = 'category';
- }
- $value_set[$input_name] =
$this->db->db_addslashes($value);
- }
- }
+ if (is_array($location))
+ {
+ foreach($location as $input_name => $value)
+ {
+ if ($value)
+ {
+ if ($input_name == 'cat_id')
+ {
+ $input_name = 'category';
+ }
+ $value_set[$input_name] =
$this->db->db_addslashes($value);
+ }
+ }
+ }
+
if (isset($values_attribute) AND
is_array($values_attribute))
{
foreach ($values_attribute as $entry)
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [Fmsystem-commits] [17537],
nelson . guerra <=