diff --git a/admin/pages/accounts.php b/admin/pages/accounts.php
index 1f0d2a5c1..4185518a7 100644
--- a/admin/pages/accounts.php
+++ b/admin/pages/accounts.php
@@ -55,7 +55,7 @@ function verify_number($number, $name, $max_length)
}
?>
-
+
query("SELECT `id` FROM `accounts` WHERE `name` = {$id}");
+ $query = $db->query("SELECT id FROM accounts WHERE name = {$id}");
if ($query->rowCount() == 1) {
$query = $query->fetch();
$id = $query['id'];
}
} else {
- $query = $db->query("SELECT `id` FROM `accounts` WHERE `name` = {$db->quote($searchName)}");
+ $query = $db->query("SELECT id FROM accounts WHERE name = {$db->quote($searchName)}");
if ($query->rowCount() == 1) {
$query = $query->fetch();
$id = $query['id'];
} else {
- $query = $db->query("SELECT `id`, `name` FROM `accounts` WHERE `name` LIKE {$db->quote("%{$searchName}%")}");
+ $query = $db->query("SELECT id, name FROM accounts WHERE name LIKE {$db->quote("%{$searchName}%")}");
if ($query->rowCount() > 0 && $query->rowCount() <= 10) {
echo 'Do you mean?
';
foreach ($query as $row)
@@ -91,6 +91,7 @@ function verify_number($number, $name, $max_length)
}
}
}
+
$groups = new OTS_Groups_List();
if ($id > 0) {
$account = new OTS_Account();
@@ -242,6 +243,7 @@ function verify_number($number, $name, $max_length)
}
?>
+
isLoaded()) { ?>
@@ -457,7 +459,7 @@ class="fa fa-remove"> Cancel
isLoaded()) {
$account_players = array();
- $query = $db->query('SELECT `name`,`level`,`vocation` FROM `players` WHERE `account_id` = ' . $account->getId() . ' ORDER BY `name`')->fetchAll();
+ $query = $db->query('SELECT `name`,`level`,`vocation` FROM `players` WHERE `account_id` = ' . $account->getId() . ' ORDER BY `name`')->fetchAll();
if (isset($query)) {
?>