Fixed POST array values paasing on timout screen.
authorJanusz Dobrowolski <janusz@frontaccounting.eu>
Wed, 17 Sep 2014 09:04:23 +0000 (11:04 +0200)
committerJanusz Dobrowolski <janusz@frontaccounting.eu>
Wed, 17 Sep 2014 09:04:23 +0000 (11:04 +0200)
access/login.php

index 799c91c175ff7f102c3b473cc7c7a6542f77ea5b..45294376db2c38bfc262a99fac70dd554ab62cf2 100644 (file)
@@ -125,7 +125,11 @@ function defaultCompany()
                // add all request variables to be resend together with login data
                if (!in_array($p, array('ui_mode', 'user_name_entry_field', 
                        'password', 'SubmitUser', 'company_login_name'))) 
-                       echo "<input type='hidden' name='$p' value='$val'>";
+                       if (!is_array($val))
+                               echo "<input type='hidden' name='$p' value='$val'>";
+                       else
+                               foreach($val as $i => $v)
+                                       echo "<input type='hidden' name='{$p}[$i]' value='$v'>";
        }
        end_form(1);
        $Ajax->addScript(true, "document.forms[0].password.focus();");