fixed hidden types

This commit is contained in:
Roland Gruber 2013-01-09 20:09:48 +00:00
parent e00b7822c8
commit 29454fd571
1 changed files with 10 additions and 4 deletions

View File

@ -3,7 +3,7 @@
$Id$ $Id$
This code is part of LDAP Account Manager (http://www.ldap-account-manager.org/) This code is part of LDAP Account Manager (http://www.ldap-account-manager.org/)
Copyright (C) 2004 - 2012 Roland Gruber Copyright (C) 2004 - 2013 Roland Gruber
This program is free software; you can redistribute it and/or modify This program is free software; you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by it under the terms of the GNU General Public License as published by
@ -366,9 +366,15 @@ function checkInput() {
elseif (substr($key, 0, 7) == "filter_") { elseif (substr($key, 0, 7) == "filter_") {
$typeSettings[$key] = $_POST[$key]; $typeSettings[$key] = $_POST[$key];
} }
}
// set hidden // set hidden
elseif (substr($key, 0, 7) == "hidden_") { for ($i = 0; $i < sizeof($accountTypes); $i++) {
$typeSettings[$key] = ($_POST[$key] == 'on'); $key = "hidden_" . $accountTypes[$i];
if (isset($_POST[$key]) && ($_POST[$key] == 'on')) {
$typeSettings[$key] = true;
}
else {
$typeSettings[$key] = false;
} }
} }
// save input // save input