diff --git a/views/bootstrap/class.AttributeMgr.php b/views/bootstrap/class.AttributeMgr.php
index 0807a8249..994c5716f 100644
--- a/views/bootstrap/class.AttributeMgr.php
+++ b/views/bootstrap/class.AttributeMgr.php
@@ -98,9 +98,8 @@ $(document).ready( function() {
echo "
";
/* 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 " | ";
echo "";