[TikiWiki-commits] [Git][tikiwiki/tiki][29.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 <690a47b7aedb0_2c646f6863720@gitlab-sidekiq-low-urgency-cpu-bound-v2-5c6795bd8c-zdtlt.mail>

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


Commits:
db030741 by Alain Cisirika at 2025-11-04T20:30:03+02:00
[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

- - - - -


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'];
         $smarty->assign('maxRecords', $maxRecords);
     }



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

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