fmsystem-commits
[Top][All Lists]
Advanced

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

[Fmsystem-commits] [17563]


From: nelson . guerra
Subject: [Fmsystem-commits] [17563]
Date: Thu, 11 Jan 2018 23:12:01 -0500 (EST)

Revision: 17563
          http://svn.sv.gnu.org/viewvc/?view=rev&root=fmsystem&revision=17563
Author:   nelson224
Date:     2018-01-11 23:12:01 -0500 (Thu, 11 Jan 2018)
Log Message:
-----------


Modified Paths:
--------------
    branches/dev-syncromind/property/setup/tables_update.inc.php

Modified: branches/dev-syncromind/property/setup/tables_update.inc.php
===================================================================
--- branches/dev-syncromind/property/setup/tables_update.inc.php        
2018-01-12 03:55:26 UTC (rev 17562)
+++ branches/dev-syncromind/property/setup/tables_update.inc.php        
2018-01-12 04:12:01 UTC (rev 17563)
@@ -700,8 +700,10 @@
                        );
                }
 
-               while(is_array($condition) && list(, $value) = each($condition))
-               {
+                if (is_array($condition))
+                {
+                    foreach($condition as $value)
+                    {
                        $GLOBALS['phpgw_setup']->oProc->query("INSERT INTO 
fm_request_condition 
(request_id,condition_type,degree,probability,consequence,user_id,entry_date) "
                                . "VALUES ('"
                        . $value['request_id'] . "','"
@@ -774,7 +776,8 @@
                        $GLOBALS['phpgw_setup']->oProc->next_record();
                        $score = $GLOBALS['phpgw_setup']->oProc->f('score');
                        $GLOBALS['phpgw_setup']->oProc->query("UPDATE 
fm_request SET score = $score WHERE id = $id", __LINE__, __FILE__);
-               }
+                    }
+                }
 
                
$GLOBALS['phpgw_setup']->oProc->DropTable('fm_request_priority_key');
 




reply via email to

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