fmsystem-commits
[Top][All Lists]
Advanced

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

[Fmsystem-commits] [17534]


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

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


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

Modified: branches/dev-syncromind/property/inc/class.boifc.inc.php
===================================================================
--- branches/dev-syncromind/property/inc/class.boifc.inc.php    2018-01-11 
00:55:15 UTC (rev 17533)
+++ branches/dev-syncromind/property/inc/class.boifc.inc.php    2018-01-11 
00:55:33 UTC (rev 17534)
@@ -306,26 +306,29 @@
                        $categories = $this->so->select_category_list();
 
                        //while (is_array($categories) && list(, $category) = 
each($categories))
-                        foreach($categories as $category)
-                       {
-                               if ($category['id'] == $selected)
-                               {
-                                       $category_list[] = array
-                                               (
-                                               'cat_id' => $category['id'],
-                                               'name' => $category['name'],
-                                               'selected' => 'selected'
-                                       );
-                               }
-                               else
-                               {
-                                       $category_list[] = array
-                                               (
-                                               'cat_id' => $category['id'],
-                                               'name' => $category['name'],
-                                       );
-                               }
-                       }
+                        if (is_array($categories))
+                        {
+                            foreach($categories as $category)
+                            {
+                                    if ($category['id'] == $selected)
+                                    {
+                                            $category_list[] = array
+                                                    (
+                                                    'cat_id' => 
$category['id'],
+                                                    'name' => 
$category['name'],
+                                                    'selected' => 'selected'
+                                            );
+                                    }
+                                    else
+                                    {
+                                            $category_list[] = array
+                                                    (
+                                                    'cat_id' => 
$category['id'],
+                                                    'name' => 
$category['name'],
+                                            );
+                                    }
+                            }
+                        }
                        return $category_list;
                }
 




reply via email to

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