#185 make comparing attribute values more strict
This commit is contained in:
parent
f57a6a4b3c
commit
453e0da077
|
@ -1496,7 +1496,7 @@ class accountContainer {
|
||||||
if (isset($orig[$name]) && is_array($orig[$name])) {
|
if (isset($orig[$name]) && is_array($orig[$name])) {
|
||||||
foreach ($orig[$name] as $j => $value) {
|
foreach ($orig[$name] as $j => $value) {
|
||||||
if (is_array($attributes[$name])) {
|
if (is_array($attributes[$name])) {
|
||||||
if (!in_array($value, $attributes[$name])) {
|
if (!in_array($value, $attributes[$name], true)) {
|
||||||
if ($value != '') $torem[$name][] = $value;
|
if ($value != '') $torem[$name][] = $value;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -1507,7 +1507,7 @@ class accountContainer {
|
||||||
if (isset($attributes[$name]) && is_array($attributes[$name])) {
|
if (isset($attributes[$name]) && is_array($attributes[$name])) {
|
||||||
foreach ($attributes[$name] as $j => $value) {
|
foreach ($attributes[$name] as $j => $value) {
|
||||||
if (isset($orig[$name]) && is_array($orig[$name])) {
|
if (isset($orig[$name]) && is_array($orig[$name])) {
|
||||||
if (!in_array($value, $orig[$name]))
|
if (!in_array($value, $orig[$name], true))
|
||||||
if ($value != '') {
|
if ($value != '') {
|
||||||
$toadd[$name][] = $value;
|
$toadd[$name][] = $value;
|
||||||
}
|
}
|
||||||
|
@ -1518,7 +1518,7 @@ class accountContainer {
|
||||||
// find unchanged attributes
|
// find unchanged attributes
|
||||||
if (isset($orig[$name]) && is_array($orig[$name]) && is_array($attributes[$name])) {
|
if (isset($orig[$name]) && is_array($orig[$name]) && is_array($attributes[$name])) {
|
||||||
foreach ($attributes[$name] as $j => $value) {
|
foreach ($attributes[$name] as $j => $value) {
|
||||||
if (($value != '') && in_array($value, $orig[$name])) {
|
if (($value != '') && in_array($value, $orig[$name], true)) {
|
||||||
$notchanged[$name][] = $value;
|
$notchanged[$name][] = $value;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -0,0 +1 @@
|
||||||
|
/*.jpg
|
Loading…
Reference in New Issue