diff --git a/htdocs/core/class/html.form.class.php b/htdocs/core/class/html.form.class.php index 9a9d3279e03..627723d1f18 100644 --- a/htdocs/core/class/html.form.class.php +++ b/htdocs/core/class/html.form.class.php @@ -6233,7 +6233,7 @@ class Form print ''; while ($i < $num) { - $objp = $this->db->fetch_object($resqlorderlist); + $objp = $this->db->fetch_object($resqllist); $var = ! $var; print '';