From: Robert Kaiser Date: Thu, 25 Jan 2018 20:52:28 +0000 (+0100) Subject: require an exact match for the list entries X-Git-Url: https://git-public.kairo.at/?p=php-utility-classes.git;a=commitdiff_plain;h=f21250a5af28138501e28496eb51af71866154ef require an exact match for the list entries --- diff --git a/classes/document.php-class b/classes/document.php-class index dbad743..dc0d919 100755 --- a/classes/document.php-class +++ b/classes/document.php-class @@ -459,7 +459,7 @@ class ExtendedDocument extends DOMDocument { $select->setAttribute('name', $name); if (!is_null($id)) { $select->setAttribute('id', $id); } foreach ($options as $key => $desc) { - $select->appendElementOption($key, $desc, ($key == $default)); + $select->appendElementOption($key, $desc, ($key === $default)); } return $select; }