Skip to content

Commit e6ca3bd

Browse files
authored
Error in recent commit. #374 (#375)
1 parent a2a068a commit e6ca3bd

File tree

2 files changed

+18
-18
lines changed

2 files changed

+18
-18
lines changed

modules/account/view.php

+17-17
Original file line numberDiff line numberDiff line change
@@ -34,17 +34,17 @@
3434
if (!$auth->allowedToViewAccount) {
3535
$this->deny();
3636
}
37-
37+
3838
$sql = "SELECT login.*, {$creditColumns}, {$createColumns} FROM {$server->loginDatabase}.login ";
3939
$sql .= "LEFT OUTER JOIN {$server->loginDatabase}.{$creditsTable} AS credits ON login.account_id = credits.account_id ";
4040
$sql .= "LEFT OUTER JOIN {$server->loginDatabase}.{$createTable} AS created ON login.account_id = created.account_id ";
4141
$sql .= "WHERE login.sex != 'S' AND login.group_id >= 0 AND login.account_id = ? LIMIT 1";
4242
$sth = $server->connection->getStatement($sql);
4343
$sth->execute(array($accountID));
44-
44+
4545
// Account object.
4646
$account = $sth->fetch();
47-
47+
4848
if ($account) {
4949
$title = sprintf(Flux::message('AccountViewTitle2'), $account->userid);
5050
}
@@ -70,11 +70,11 @@
7070
$vipexpires = 'Expires '.$dt->format('Y-m-d');
7171
} elseif ($account->vip_time == '0'){
7272
$vipexpires = 'Standard Account';
73-
} else {$vipexpires = 'Unknown';}
73+
} else {$vipexpires = 'Unknown';}
7474

7575
if (count($_POST) && $account) {
7676
$reason = (string)$params->get('reason');
77-
77+
7878
if ($params->get('tempban') && ($tempBanDate=$params->get('tempban_date'))) {
7979
if ($canTempBan) {
8080
if ($server->loginServer->temporarilyBan($session->account->account_id, $reason, $account->account_id, $tempBanDate)) {
@@ -108,30 +108,30 @@
108108
$tbl = Flux::config('FluxTables.AccountCreateTable');
109109
$sql = "SELECT account_id FROM {$server->loginDatabase}.$tbl WHERE confirmed = 0 AND account_id = ?";
110110
$sth = $server->connection->getStatement($sql);
111-
111+
112112
$sth->execute(array($account->account_id));
113113
$confirm = $sth->fetch();
114-
114+
115115
$sql = "UPDATE {$server->loginDatabase}.$tbl SET confirmed = 1, confirm_expire = NULL WHERE account_id = ?";
116116
$sth = $server->connection->getStatement($sql);
117-
117+
118118
if ($tempBanned && $auth->allowedToTempUnbanAccount &&
119119
$server->loginServer->unban($session->account->account_id, $reason, $account->account_id)) {
120-
120+
121121
if ($confirm) {
122122
$sth->execute(array($account->account_id));
123123
}
124-
124+
125125
$session->setMessageData(Flux::message('AccountLiftTempBan'));
126126
$this->redirect($this->url('account', 'view', array('id' => $account->account_id)));
127127
}
128128
elseif ($permBanned && $auth->allowedToPermUnbanAccount &&
129129
$server->loginServer->unban($session->account->account_id, $reason, $account->account_id)) {
130-
130+
131131
if ($confirm) {
132132
$sth->execute(array($account->account_id));
133133
}
134-
134+
135135
$session->setMessageData(Flux::message('AccountLiftPermBan'));
136136
$this->redirect($this->url('account', 'view', array('id' => $account->account_id)));
137137
}
@@ -149,8 +149,8 @@
149149
$characters = array();
150150
foreach ($session->getAthenaServerNames() as $serverName) {
151151
$athena = $session->getAthenaServer($serverName);
152-
153-
$sql = "SELECT ch.*, guild.name AS guild_name, ";
152+
153+
$sql = "SELECT ch.*, guild.name AS guild_name ";
154154
$sql .= "FROM {$athena->charMapDatabase}.`char` AS ch ";
155155
$sql .= "LEFT OUTER JOIN {$athena->charMapDatabase}.guild ON guild.guild_id = ch.guild_id ";
156156
$sql .= "WHERE ch.account_id = ? ORDER BY ch.char_num ASC";
@@ -190,7 +190,7 @@
190190

191191
foreach ($items as $item) {
192192
$item->cardsOver = -$item->slots;
193-
193+
194194
if ($item->card0) {
195195
$cardIDs[] = $item->card0;
196196
$item->cardsOver++;
@@ -207,7 +207,7 @@
207207
$cardIDs[] = $item->card3;
208208
$item->cardsOver++;
209209
}
210-
210+
211211
if ($item->card0 == 254 || $item->card0 == 255 || $item->card0 == -256 || $item->cardsOver < 0) {
212212
$item->cardsOver = 0;
213213
}
@@ -237,7 +237,7 @@
237237
}
238238
}
239239
}
240-
240+
241241
$itemAttributes = Flux::config('Attributes')->toArray();
242242
$type_list = Flux::config('ItemTypes')->toArray();
243243
}

themes/default/guild/view.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99
<th>Guild Name</th>
1010
<td><?php echo htmlspecialchars($guild->name) ?></td>
1111
<th>Emblem ID</th>
12-
<td><?php echo number_format($guild->emblem_id) ?></td>
12+
<td><?php echo number_format($guild->emblem) ?></td>
1313
<td><img src="<?php echo $this->emblem($guild->guild_id) ?>" /></td>
1414
</tr>
1515
<tr>

0 commit comments

Comments
 (0)