From f21250a5af28138501e28496eb51af71866154ef Mon Sep 17 00:00:00 2001 From: Robert Kaiser Date: Thu, 25 Jan 2018 21:52:28 +0100 Subject: [PATCH] require an exact match for the list entries --- classes/document.php-class | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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; } -- 2.35.3