[repo.or.cz] duojsonparge.git branch master updated: 2678a10025b2b262b096c2833a372d7be429d61e

0 views
Skip to first unread message

hahahahacker2009

<hahahahacker2009@gmail.com>
unread,
Aug 28, 2024, 3:59:20 AM8/28/24
to duovn894@googlegroups.com
This is an automated email generated because a ref change occurred in the
git repository for project duojsonparge.git.

The branch, master has been updated
via 2678a10025b2b262b096c2833a372d7be429d61e (commit)
from bee5952abd724fd83de0691a3cc24fe8150916ea (commit)

Those revisions listed above that are new to this repository have
not appeared on any other notification email; so we list those
revisions in full, below.

- Log -----------------------------------------------------------------
commit 2678a10025b2b262b096c2833a372d7be429d61e
Author: hahahahacker2009 <hahahaha...@gmail.com>
Date: Wed, 28 Aug 2024 14:59:04 +0700
URL: <https://repo.or.cz/duojsonparge.git/2678a10025b2b262>

previously was a dumb implementaion

---
comment/list.php | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/comment/list.php b/comment/list.php
index 94e679a93349..8f3acee93a67 100644
--- a/comment/list.php
+++ b/comment/list.php
@@ -34,7 +34,7 @@ if (isset($_GET['nr']) && intval($_GET['nr']) <= 50) {
}
$start = ($page - 1) * $n_rows;

-$last_key = max(array_keys($arr));
+$last_key = array_key_last($arr);
$n_pages = ceil($last_key / $n_rows);

if ($page <= $n_pages) {

-----------------------------------------------------------------------

Summary of changes:
comment/list.php | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)


repo.or.cz automatic notification. Contact project admin hahahaha...@gmail.com
if you want to unsubscribe, or site admin ad...@repo.or.cz if you receive
no reply.
--
duojsonparge.git ("Scripts to parse duolingo forum's json file and generate minimal HTML web page.")
Reply all
Reply to author
Forward
0 new messages