";
if ($_user->isAdmin()) {
- if ($user->getId() == $_user->getId()) {
+ if ($user->id == $_user->id) {
echo "
";
} else {
echo "
-
+
";
}
}
diff --git a/include/users-new.php b/include/users-new.php
index 5b4bd7f..0582134 100644
--- a/include/users-new.php
+++ b/include/users-new.php
@@ -33,7 +33,7 @@ try {
$response->message = "The user could not be created due to an error.";
} else {
$response->success = true;
- $response->message = "User '{$user->getUsername()}' has been created with password $pass. Refresh the page.";
+ $response->message = "User '{$user->username}' has been created with password $pass. Refresh the page.";
}
} catch (PDOException $e) {
$response->success = false;
--
cgit v1.2.3