Skip to content

Commit

Permalink
Fixed 2 small rendering bugs
Browse files Browse the repository at this point in the history
  • Loading branch information
jamesread committed Jan 11, 2025
1 parent 11f7fb7 commit 0dc8bb1
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
2 changes: 2 additions & 0 deletions src/usergroup-create.php
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,8 @@

if ($f->validate()) {
$f->process();

redirect('users.php');
}

$tpl->displayForm($f);
5 changes: 3 additions & 2 deletions src/users.php
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<?php

require_once 'includes/widgets/header.php';
require_once 'includes/common.php';

use libAllure\Session;

Expand Down Expand Up @@ -44,6 +44,8 @@
redirect('users.php');
}

require_once 'includes/widgets/header.php';

$sql = "SELECT u.id, u.username, u.`group`, g.title AS groupTitle FROM users u LEFT JOIN `groups` g ON u.`group` = g.id";
$stmt = $db->prepare($sql);
$stmt->execute();
Expand All @@ -53,7 +55,6 @@
$tpl->assign('currentUid', Session::getUser()->getId());
$tpl->assign('users', $users);


$sql = 'SELECT g.id, g.title FROM `groups` g';
$stmt = $db->prepare($sql);
$stmt->execute();
Expand Down

0 comments on commit 0dc8bb1

Please # to comment.