fmsystem-commits
[Top][All Lists]
Advanced

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

[Fmsystem-commits] [17545]


From: nelson . guerra
Subject: [Fmsystem-commits] [17545]
Date: Wed, 10 Jan 2018 21:13:24 -0500 (EST)

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


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

Modified: branches/dev-syncromind/property/inc/class.boworkorder.inc.php
===================================================================
--- branches/dev-syncromind/property/inc/class.boworkorder.inc.php      
2018-01-11 02:13:06 UTC (rev 17544)
+++ branches/dev-syncromind/property/inc/class.boworkorder.inc.php      
2018-01-11 02:13:24 UTC (rev 17545)
@@ -254,20 +254,23 @@
                        $branch_entries = $this->so->select_branch_list();
 
                        $j = 0;
-                       while (is_array($branch_entries) && list(, $branch) = 
each($branch_entries))
-                       {
-                               $branch_list[$j]['id'] = $branch['id'];
-                               $branch_list[$j]['name'] = $branch['name'];
+                        if (is_array($branch_entries))
+                        {
+                            foreach($branch_entries as $branch)
+                            {
+                                    $branch_list[$j]['id'] = $branch['id'];
+                                    $branch_list[$j]['name'] = $branch['name'];
 
-                               for ($i = 0; $i < count($selected); $i++)
-                               {
-                                       if ($selected[$i]['branch_id'] == 
$branch['id'])
-                                       {
-                                               $branch_list[$j]['selected'] = 
'selected';
-                                       }
-                               }
-                               $j++;
-                       }
+                                    for ($i = 0; $i < count($selected); $i++)
+                                    {
+                                            if ($selected[$i]['branch_id'] == 
$branch['id'])
+                                            {
+                                                    
$branch_list[$j]['selected'] = 'selected';
+                                            }
+                                    }
+                                    $j++;
+                            }
+                        }
 
                        return $branch_list;
                }




reply via email to

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