fmsystem-commits
[Top][All Lists]
Advanced

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

[Fmsystem-commits] [17574]


From: nelson . guerra
Subject: [Fmsystem-commits] [17574]
Date: Fri, 12 Jan 2018 23:06:58 -0500 (EST)

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


Modified Paths:
--------------
    branches/dev-syncromind/registration/inc/class.uireg.inc.php

Modified: branches/dev-syncromind/registration/inc/class.uireg.inc.php
===================================================================
--- branches/dev-syncromind/registration/inc/class.uireg.inc.php        
2018-01-13 04:06:41 UTC (rev 17573)
+++ branches/dev-syncromind/registration/inc/class.uireg.inc.php        
2018-01-13 04:06:58 UTC (rev 17574)
@@ -226,9 +226,10 @@
                        ));
                        $this->template->set_block('_personal_info', 'form');
 
-                       if ($missing_fields)
+                       if (is_array($missing_fields))
                        {
-                               while (list(, $field) = each($missing_fields))
+                               //while (list(, $field) = each($missing_fields))
+                                foreach ($missing_fields as $key => $field)
                                {
                                        $missing[$field] = True;
                                        $this->template->set_var('missing_' . 
$field, '<font color="#CC0000">*</font>');
@@ -237,7 +238,8 @@
 
                        if (is_array($r_reg))
                        {
-                               while (list($name, $value) = each($r_reg))
+                               //while (list($name, $value) = each($r_reg))
+                                foreach ($r_reg as $name => $value)
                                {
                                        $post_values[$name] = $value;
                                        $this->template->set_var('value_' . 
$name, $value);
@@ -246,7 +248,8 @@
 
                        if (is_array($o_reg))
                        {
-                               while (list($name, $value) = each($o_reg))
+                               //while (list($name, $value) = each($o_reg))
+                                foreach ($o_reg as $name => $value)
                                {
                                        $post_values[$name] = $value;
                                        $this->template->set_var('value_' . 
$name, $value);




reply via email to

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