fmsystem-commits
[Top][All Lists]
Advanced

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

[Fmsystem-commits] [17546]


From: nelson . guerra
Subject: [Fmsystem-commits] [17546]
Date: Wed, 10 Jan 2018 22:40:26 -0500 (EST)

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


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

Modified: branches/dev-syncromind/property/inc/class.bowo_hour.inc.php
===================================================================
--- branches/dev-syncromind/property/inc/class.bowo_hour.inc.php        
2018-01-11 02:13:24 UTC (rev 17545)
+++ branches/dev-syncromind/property/inc/class.bowo_hour.inc.php        
2018-01-11 03:40:25 UTC (rev 17546)
@@ -154,7 +154,7 @@
                        $tolerances[1]['id'] = 2;
                        $tolerances[2]['id'] = 3;
 
-                       while (is_array($tolerances) && list(, 
$tolerance_entry) = each($tolerances))
+                        foreach($tolerances as $tolerance_entry)
                        {
                                $sel_tolerance_entry = '';
                                if ($tolerance_entry['id'] == $selected)
@@ -193,23 +193,26 @@
                        
$GLOBALS['phpgw']->xslttpl->add_file(array('building_part_select'));
 
                        $building_parts = $this->so->get_building_part_list();
+                        
+                        if (is_array($building_parts))
+                        {
+                            foreach($building_parts as $building_part_entry)
+                            {
+                                    $sel_building_part_entry = '';
+                                    if ($building_part_entry['id'] == 
$selected)
+                                    {
+                                            $sel_building_part_entry = 
'selected';
+                                    }
 
-                       while (is_array($building_parts) && list(, 
$building_part_entry) = each($building_parts))
-                       {
-                               $sel_building_part_entry = '';
-                               if ($building_part_entry['id'] == $selected)
-                               {
-                                       $sel_building_part_entry = 'selected';
-                               }
+                                    $building_part_list[] = array
+                                            (
+                                            'id' => $building_part_entry['id'],
+                                            'name' => '[ ' . 
$building_part_entry['id'] . ' ] ' . $building_part_entry['name'],
+                                            'selected' => 
$sel_building_part_entry
+                                    );
+                            }
+                        }
 
-                               $building_part_list[] = array
-                                       (
-                                       'id' => $building_part_entry['id'],
-                                       'name' => '[ ' . 
$building_part_entry['id'] . ' ] ' . $building_part_entry['name'],
-                                       'selected' => $sel_building_part_entry
-                               );
-                       }
-
                        for ($i = 0; $i < count($building_part_list); $i++)
                        {
                                if ($building_part_list[$i]['selected'] != 
'selected')




reply via email to

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