mirror of
https://git.wownero.com/wownero/onion-wownero-blockchain-explorer.git
synced 2024-08-15 00:33:12 +00:00
fix: possible division by 0
This commit is contained in:
parent
fa168613ae
commit
99b4f34f52
1 changed files with 1 additions and 2 deletions
|
@ -4092,8 +4092,7 @@ namespace xmreg
|
|||
j_data["page"] = page;
|
||||
j_data["limit"] = limit;
|
||||
j_data["current_height"] = height;
|
||||
j_data["total_page_no"] = (height / limit);
|
||||
|
||||
j_data["total_page_no"] = (limit == 0 ? 0 : height / limit);
|
||||
|
||||
j_response["status"] = "success";
|
||||
|
||||
|
|
Loading…
Reference in a new issue