From 3f830115f12868e91481935666daa0361afc23b9 Mon Sep 17 00:00:00 2001 From: Roland Gruber Date: Sat, 12 Apr 2014 17:51:47 +0000 Subject: [PATCH] fixed message when column is unique but not required --- lam/templates/massBuildAccounts.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lam/templates/massBuildAccounts.php b/lam/templates/massBuildAccounts.php index 7474be3d..8b496e27 100644 --- a/lam/templates/massBuildAccounts.php +++ b/lam/templates/massBuildAccounts.php @@ -3,7 +3,7 @@ $Id$ This code is part of LDAP Account Manager (http://www.ldap-account-manager.org/) - Copyright (C) 2004 - 2013 Roland Gruber + Copyright (C) 2004 - 2014 Roland Gruber 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 @@ -159,7 +159,7 @@ if ($_FILES['inputfile'] && ($_FILES['inputfile']['size'] > 0)) { // check if values in unique columns are correct for ($i = 0; $i < sizeof($columns); $i++) { - if (isset($columns[$i]['unique']) && ($columns[$i]['unique'] == true)) { + if (isset($columns[$i]['unique']) && ($columns[$i]['unique'] == true) && isset($ids[$columns[$i]['name']])) { $colNumber = $ids[$columns[$i]['name']]; $values_given = array(); for ($r = 0; $r < sizeof($data); $r++) {