mirror of
https://git.code.sf.net/p/seeddms/code
synced 2025-05-16 14:41:39 +00:00
use in_array() instead of array_search()
This commit is contained in:
parent
4647856c77
commit
269db21067
|
@ -98,9 +98,8 @@ $(document).ready( function() {
|
||||||
echo "<td>";
|
echo "<td>";
|
||||||
/* Check if value is in value set */
|
/* Check if value is in value set */
|
||||||
if($selattrdef->getValueSet()) {
|
if($selattrdef->getValueSet()) {
|
||||||
if(false === array_search($entry['value'], $selattrdef->getValueSetAsArray()))
|
if(in_array($entry['value'], $selattrdef->getValueSetAsArray()))
|
||||||
printMLText("attribute_value_not_in_valueset");
|
printMLText("attribute_value_not_in_valueset");
|
||||||
} else {
|
|
||||||
}
|
}
|
||||||
echo "</td>";
|
echo "</td>";
|
||||||
echo "</tr>";
|
echo "</tr>";
|
||||||
|
|
Loading…
Reference in New Issue
Block a user