[TikiWiki-commits] [Git][tikiwiki/tiki][28.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 <690eca369eae8_2ce36ac90978@gitlab-sidekiq-low-urgency-cpu-bound-v2-7d6b66dd6f-zqrtj.mail>

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


Commits:
af2b91bd by Alain Cisirika at 2025-11-08T06:36:06+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...
---
* [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

- - - - -


1 changed file:

- tiki-listpages.php


Changes:

=====================================
tiki-listpages.php
=====================================
@@ -134,7 +134,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/af2b91bde9a4f27e6ef94910de6175e7ec2471de

-- 
View it on GitLab: https://gitlab.com/tikiwiki/tiki/-/commit/af2b91bde9a4f27e6ef94910de6175e7ec2471de
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.