require an exact match for the list entries
authorRobert Kaiser <kairo@kairo.at>
Thu, 25 Jan 2018 20:52:28 +0000 (21:52 +0100)
committerRobert Kaiser <kairo@kairo.at>
Thu, 25 Jan 2018 20:52:28 +0000 (21:52 +0100)
classes/document.php-class

index dbad7436beab02d0b313c7cbd9bf5fe9cb9960bc..dc0d91981d9051b22f5e97ac62eb57639d32e03a 100755 (executable)
@@ -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;
   }