Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion webroot/panel/groups.php
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@

if (isset($_POST["form_name"])) {
if (isset($_POST["pi"])) {
$pi_account = new UnityGroup($_POST["pi"], $LDAP, $SQL, $MAILER, $REDIS, $WEBHOOK);
$pi_account = new UnityGroup(trim($_POST["pi"]), $LDAP, $SQL, $MAILER, $REDIS, $WEBHOOK);
if (!$pi_account->exists()) {
// "\'" instead of "'", otherwise it will close a single quote used to place the message
array_push($modalErrors, "This PI doesn\'t exist");
Expand Down
Loading