while ($this->limitstart >= $total) {
$this->limitstart -= $this->limit;
}
cambiar por
while ($this->limitstart >= $total) {
if ($total == 0 || $this->limit == 0) {
$this->limitstart = 0;
break;
}
$this->limitstart -= $this->limit;
}
Tambien podeis actualizar a la version 3.7.5