Update list.php because of pagination error in postgresql

See #5008