fmsystem-commits
[Top][All Lists]
Advanced

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

[Fmsystem-commits] [17633]


From: nelson . guerra
Subject: [Fmsystem-commits] [17633]
Date: Thu, 18 Jan 2018 18:20:17 -0500 (EST)

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


Modified Paths:
--------------
    branches/dev-syncromind/admin/inc/class.uiconfig.inc.php

Modified: branches/dev-syncromind/admin/inc/class.uiconfig.inc.php
===================================================================
--- branches/dev-syncromind/admin/inc/class.uiconfig.inc.php    2018-01-18 
23:20:03 UTC (rev 17632)
+++ branches/dev-syncromind/admin/inc/class.uiconfig.inc.php    2018-01-18 
23:20:17 UTC (rev 17633)
@@ -91,8 +91,11 @@
                                /* Load hook file with functions to validate 
each config (one/none/all) */
                                
$GLOBALS['phpgw']->hooks->single('config_validate',$appname);
 
-                               while (list($key,$config) = 
each($_POST['newsettings']))
-                               {
+                               //while (list($key,$config) = 
each($_POST['newsettings']))
+                                if (is_array($_POST['newsettings']))
+                                {
+                                    foreach($_POST['newsettings'] as $key => 
$config)
+                                    {
                                        if ($config || $config === '0')
                                        {
                                                
if(isset($GLOBALS['phpgw_info']['server']['found_validation_hook']) && 
$GLOBALS['phpgw_info']['server']['found_validation_hook'] && 
function_exists($key))
@@ -121,7 +124,8 @@
                                                        
unset($c->config_data[$key]);
                                                }
                                        }
-                               }
+                                    }
+                                }
                                
if(isset($GLOBALS['phpgw_info']['server']['found_validation_hook']) && 
$GLOBALS['phpgw_info']['server']['found_validation_hook'] && 
function_exists('final_validation'))
                                {
                                        final_validation($newsettings);




reply via email to

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