mirror of
https://git.code.sf.net/p/seeddms/code
synced 2025-05-12 04:31:32 +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>";
|
||||
/* Check if value is in value set */
|
||||
if($selattrdef->getValueSet()) {
|
||||
if(false === array_search($entry['value'], $selattrdef->getValueSetAsArray()))
|
||||
if(in_array($entry['value'], $selattrdef->getValueSetAsArray()))
|
||||
printMLText("attribute_value_not_in_valueset");
|
||||
} else {
|
||||
}
|
||||
echo "</td>";
|
||||
echo "</tr>";
|
||||
|
|
Loading…
Reference in New Issue
Block a user