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 dbad743..dc0d919 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;
   }