Optimisations & fixes.

This commit is contained in:
slawkens
2021-12-05 10:33:31 +01:00
parent 468f59fbec
commit 7008c9f4d8
5 changed files with 20 additions and 20 deletions

View File

@@ -10,8 +10,8 @@
defined('MYAAC') or die('Direct access not allowed!');
$title = 'Changelog';
$_page = isset($_GET['page']) ? $_GET['page'] : 0;
$id = isset($_GET['id']) ? $_GET['id'] : 0;
$_page = $_GET['page'] ?? 0;
$id = $_GET['id'] ?? 0;
$limit = 30;
$offset = $_page * $limit;
$next_page = false;
@@ -43,4 +43,3 @@ $twig->display('changelog.html.twig', array(
'next_page' => $next_page,
'canEdit' => $canEdit,
));
?>