We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 32134c1 commit 2393fcbCopy full SHA for 2393fcb
1 file changed
src/Util/Autofill.php
@@ -108,6 +108,11 @@ public function getAdditionalNumber()
108
$space = $this->space;
109
$number = 0;
110
111
+ // Protezione contro divisione per zero
112
+ if ($this->max_rows <= 0) {
113
+ return 0;
114
+ }
115
+
116
// Algoritmo per il calcolo delle pagine
117
if ($space <= $this->max_rows) {
118
// Prima pagina - calcolo diretto
0 commit comments