From 8ac696ed222ba7ece41d5946749d2560a5a26f5e Mon Sep 17 00:00:00 2001 From: Roland Gruber Date: Fri, 1 Feb 2019 20:27:49 +0100 Subject: [PATCH] fixed cases when numbers are equal --- lam/lib/modules/posixAccount.inc | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/lam/lib/modules/posixAccount.inc b/lam/lib/modules/posixAccount.inc index 0df19eef..a0c47f28 100644 --- a/lam/lib/modules/posixAccount.inc +++ b/lam/lib/modules/posixAccount.inc @@ -6,7 +6,7 @@ use LAM\TYPES\ConfiguredType; This code is part of LDAP Account Manager (http://www.ldap-account-manager.org/) Copyright (C) 2003 - 2006 Tilo Lutz - Copyright (C) 2005 - 2018 Roland Gruber + Copyright (C) 2005 - 2019 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 @@ -2352,7 +2352,7 @@ class posixAccount extends baseModule implements passwordService { } // minUID < maxUID if (isset($options['posixAccount_' . $typeId . '_minUID'][0]) && isset($options['posixAccount_' . $typeId . '_maxUID'][0])) { - if ($options['posixAccount_' . $typeId . '_minUID'][0] > $options['posixAccount_' . $typeId . '_maxUID'][0]) { + if ($options['posixAccount_' . $typeId . '_minUID'][0] >= $options['posixAccount_' . $typeId . '_maxUID'][0]) { $return[] = $this->messages['cmp_UID'][0]; } } @@ -2381,7 +2381,7 @@ class posixAccount extends baseModule implements passwordService { } // minUID < maxUID if (isset($options['posixAccount_' . $typeId . '_minMachine'][0]) && isset($options['posixAccount_' . $typeId . '_maxMachine'][0])) { - if ($options['posixAccount_' . $typeId . '_minMachine'][0] > $options['posixAccount_' . $typeId . '_maxMachine'][0]) { + if ($options['posixAccount_' . $typeId . '_minMachine'][0] >= $options['posixAccount_' . $typeId . '_maxMachine'][0]) { $return[] = $this->messages['cmp_Machine'][0]; } }