fmsystem-commits
[Top][All Lists]
Advanced

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

[Fmsystem-commits] [17533]


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

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


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

Modified: branches/dev-syncromind/property/inc/class.boinvestment.inc.php
===================================================================
--- branches/dev-syncromind/property/inc/class.boinvestment.inc.php     
2018-01-11 00:54:57 UTC (rev 17532)
+++ branches/dev-syncromind/property/inc/class.boinvestment.inc.php     
2018-01-11 00:55:15 UTC (rev 17533)
@@ -174,21 +174,24 @@
                        $categories = $this->so->write_off_period_list();
 
                        //while (is_array($categories) && list(, $category) = 
each($categories))
-                        foreach($categories as $category)
-                       {
-                               $sel_category = '';
-                               if ($category['period'] == $selected)
-                               {
-                                       $sel_category = 'selected';
-                               }
+                        if (is_array($categories))
+                        {
+                            foreach($categories as $category)
+                            {
+                                    $sel_category = '';
+                                    if ($category['period'] == $selected)
+                                    {
+                                            $sel_category = 'selected';
+                                    }
 
-                               $category_list[] = array
-                                       (
-                                       'id' => $category['period'],
-                                       'name' => $category['period'],
-                                       'selected' => $sel_category
-                               );
-                       }
+                                    $category_list[] = array
+                                            (
+                                            'id' => $category['period'],
+                                            'name' => $category['period'],
+                                            'selected' => $sel_category
+                                    );
+                            }
+                        }
 
                        for ($i = 0; $i < count($category_list); $i++)
                        {
@@ -204,13 +207,16 @@
                function save_investment( $values )
                {
                        //while (is_array($values['location']) && list(, 
$value) = each($values['location']))
-                        foreach($values['location'] as $value)
-                       {
-                               if ($value)
-                               {
-                                       $location[] = $value;
-                               }
-                       }
+                        if (is_array($values['location']))
+                        {
+                            foreach($values['location'] as $value)
+                            {
+                                    if ($value)
+                                    {
+                                            $location[] = $value;
+                                    }
+                            }
+                        }
 
                        $values['location_code'] = implode("-", $location);
 




reply via email to

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