mirror of
https://gitlab.easter-eggs.com/ee/ldapsaisie.git
synced 2024-11-22 09:59:06 +01:00
Fixed some vales check to globally permit 'zero string' value
This commit is contained in:
parent
3e069a5907
commit
f4f2665fba
2 changed files with 3 additions and 3 deletions
|
@ -223,7 +223,7 @@ class LSformElement {
|
|||
$_POST[$this -> name] = array($_POST[$this -> name]);
|
||||
}
|
||||
foreach($_POST[$this -> name] as $key => $val) {
|
||||
if (!empty($val)) {
|
||||
if (!empty($val)||(is_string($val)&&($val=="0"))) {
|
||||
$return[$this -> name][$key] = $val;
|
||||
}
|
||||
}
|
||||
|
|
|
@ -282,14 +282,14 @@ class LSldap {
|
|||
$drop = true;
|
||||
if (is_array($attrVal)) {
|
||||
foreach($attrVal as $val) {
|
||||
if (!empty($val)) {
|
||||
if (!empty($val)||(is_string($val)&&($val=="0"))) {
|
||||
$drop = false;
|
||||
$changeData[$attrName][]=$val;
|
||||
}
|
||||
}
|
||||
}
|
||||
else {
|
||||
if (!empty($attrVal)) {
|
||||
if (!empty($attrVal)||(is_string($attrVal)&&($attrVal=="0"))) {
|
||||
$drop = false;
|
||||
$changeData[$attrName][]=$attrVal;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue