From 269db21067239908fd0ed79a6950c5a7720a4b58 Mon Sep 17 00:00:00 2001 From: Uwe Steinmann Date: Thu, 27 Oct 2016 07:09:15 +0200 Subject: [PATCH] use in_array() instead of array_search() --- views/bootstrap/class.AttributeMgr.php | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) 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 "";