fmsystem-commits
[Top][All Lists]
Advanced

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

[Fmsystem-commits] [17544]


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

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


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

Modified: branches/dev-syncromind/property/inc/class.historylog.inc.php
===================================================================
--- branches/dev-syncromind/property/inc/class.historylog.inc.php       
2018-01-11 02:12:51 UTC (rev 17543)
+++ branches/dev-syncromind/property/inc/class.historylog.inc.php       
2018-01-11 02:13:06 UTC (rev 17544)
@@ -231,12 +231,15 @@
                        {
                                $orderby = "ORDER BY $_orderby $sort";
                        }
+                        
+                        if (is_array($filter_out))
+                        {
+                            foreach($filter_out as $_filter)
+                            {
+                                    $filtered[] = "history_status != 
'{$_filter}'";
+                            }
+                        }
 
-                       while (is_array($filter_out) && list(, $_filter) = 
each($filter_out))
-                       {
-                               $filtered[] = "history_status != '{$_filter}'";
-                       }
-
                        $filter = '';
                        if (isset($filtered))
                        {
@@ -253,10 +256,13 @@
                                $filter .= " AND history_detail_id = 
$detail_id";
                        }
 
-                       while (is_array($only_show) && list(, $_filter) = 
each($only_show))
-                       {
-                               $_only_show[] = "history_status='{$_filter}'";
-                       }
+                        if (is_array($only_show))
+                        {
+                            foreach($only_show as $_filter)
+                            {
+                                    $_only_show[] = 
"history_status='{$_filter}'";
+                            }
+                        }
 
                        $only_show_filter = '';
                        if (isset($_only_show))




reply via email to

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