fmsystem-commits
[Top][All Lists]
Advanced

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

[Fmsystem-commits] [17528]


From: nelson . guerra
Subject: [Fmsystem-commits] [17528]
Date: Wed, 10 Jan 2018 19:35:54 -0500 (EST)

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


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

Modified: branches/dev-syncromind/property/inc/class.uialarm.inc.php
===================================================================
--- branches/dev-syncromind/property/inc/class.uialarm.inc.php  2018-01-11 
00:35:14 UTC (rev 17527)
+++ branches/dev-syncromind/property/inc/class.uialarm.inc.php  2018-01-11 
00:35:54 UTC (rev 17528)
@@ -392,11 +392,15 @@
 
 //            echo '<pre>'; print_r($list); echo '</pre>';
 
-                       while (is_array($list) && list($id, $alarm) = 
each($list))
-                       {
+                       //while (is_array($list) && list($id, $alarm) = 
each($list))
+                        if (is_array($list))
+                        {
+                            foreach($list as $id => $alarm)
+                            {
                                if (is_array($alarm['times']))
                                {
-                                       while (is_array($alarm['times']) && 
list($key, $value) = each($alarm['times']))
+                                       //while (is_array($alarm['times']) && 
list($key, $value) = each($alarm['times']))
+                                        foreach($alarm['times'] as $key => 
$value)
                                        {
                                                $times .=$key . ' => ' . $value 
. ' ';
                                        }
@@ -408,7 +412,8 @@
 
                                if (is_array($alarm['data']))
                                {
-                                       while (is_array($alarm['data']) && 
list($key, $value) = each($alarm['data']))
+                                       //while (is_array($alarm['data']) && 
list($key, $value) = each($alarm['data']))
+                                        foreach($alarm['data'] as $key => 
$value)
                                        {
                                                if ($key == 'owner')
                                                {
@@ -448,7 +453,8 @@
                                unset($link_edit);
                                unset($lang_edit_statustext);
                                unset($text_edit);
-                       }
+                            }
+                        }
 
                        $result_data = array('results' => $content);
 




reply via email to

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