diff --git a/htdocs/core/class/html.formother.class.php b/htdocs/core/class/html.formother.class.php
index ebe28237cc4..a93d744cbaf 100644
--- a/htdocs/core/class/html.formother.class.php
+++ b/htdocs/core/class/html.formother.class.php
@@ -1381,12 +1381,13 @@ class FormOther
while ($i < $num) {
$obj = $this->db->fetch_object($result);
- if ($selected == $obj->rowid || $selected == $obj->$keyfield) {
- print '';
$i++;
}