Jake Vanderwerf
2026-01-22 58e8ae0759ccfa97c478ccae4e0778bdce70966f
inc/rest/routes/NotificationsRoutes.php
@@ -441,9 +441,9 @@
                    'total' => $total_count,
                    'page' => $offset,
                    'per_page' => $limit,
                    'pages' => ceil($total_count / $limit),
                    'pages' => ceil($total_count / $limit)
                ],
                    'has_more' => ($offset * $limit + count($notifications)) < $total_count
                ]
            ];
            // Cache the result
@@ -462,9 +462,9 @@
                    'total' => 0,
                    'page' => $offset,
                    'per_page' => $limit,
                    'pages' => 0,
                    'pages' => 0
                ],
                    'has_more' => false
                ]
            ]);
        }
    }
@@ -835,9 +835,9 @@
                    'total' => (int)$total_count,
                    'page' => $offset,
                    'per_page' => $limit,
                    'pages' => ceil($total_count / $limit),
                    'pages' => ceil($total_count / $limit)
                ],
                    'has_more' => ($offset + $limit) < $total_count
                ]
            ];
            // Cache the results
@@ -857,9 +857,9 @@
                    'total' => 0,
                    'page' => $offset,
                    'per_page' => $limit,
                    'pages' => 0,
                    'pages' => 0
                ],
                    'has_more' => false
                ]
            ];
        }
    }