[TikiWiki-commits] [Git][tikiwiki/tiki][27.x] [BP][FIX] listpages.php: Uncaught DivisionByZeroError: Division by zero when $maxRecord sis...

"Baraka Kinywa \(@bkinywa24\) via TikiWiki-cvs" <[email protected]>
Newsgroups gmane.comp.cms.tiki.cvs
Message-ID <6915a42422089_2c1b2d21051831@gitlab-sidekiq-low-urgency-cpu-bound-v2-6b8bcc6cf6-lvc8w.mail>

Baraka Kinywa pushed to branch 27.x at Tiki Wiki CMS Groupware / Tiki


Commits:
b6779649 by Alain Cisirika at 2025-11-13T11:19:46+02:00
[BP][FIX] listpages.php: Uncaught DivisionByZeroError: Division by zero when  $maxRecord sis...
---
* [BP][FIX] listpages.php: Uncaught DivisionByZeroError: Division by zero when  $maxRecord sis...
---
* [BP][FIX] listpages.php: Uncaught DivisionByZeroError: Division by zero when  $maxRecord sis...
---
* [FIX]listpages.php: Uncaught DivisionByZeroError: Division by zero when  $maxRecord sis...
---
* [FIX]listpages.php: Uncaught DivisionByZeroError: Division by zero when  is not provided or equals to zero

See merge request tikiwiki/tiki!8648

See merge request tikiwiki/tiki!8957

See merge request tikiwiki/tiki!8960

See merge request tikiwiki/tiki!9016

- - - - -


1 changed file:

- tiki-listpages.php


Changes:

=====================================
tiki-listpages.php
=====================================
@@ -106,7 +106,7 @@ if (! empty($multiprint_pages)) {
     // for the information as the number of
     // days to get in the log 1,3,4,etc
     // it will default to 1 recovering information for today
-    if (isset($_REQUEST['maxRecords'])) {
+    if (! empty($_REQUEST['maxRecords'])) {
         $maxRecords = $_REQUEST['maxRecords'];
     } else {
         $maxRecords = $maxRecords;



View it on GitLab: https://gitlab.com/tikiwiki/tiki/-/commit/b677964934ec90bba24e4532eeeb50d907892360

-- 
View it on GitLab: https://gitlab.com/tikiwiki/tiki/-/commit/b677964934ec90bba24e4532eeeb50d907892360
You're receiving this email because of your account on gitlab.com.

_______________________________________________
TikiWiki-cvs mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/tikiwiki-cvs
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.