Fix parse errors

git-svn-id: file:///svn/phpbb/trunk@8331 89ea8834-ac86-4346-8a33-228a782c2dd0
This commit is contained in:
Marek A. R 2008-01-22 22:15:30 +00:00
parent dbcf8a6f31
commit e6991260df
3 changed files with 3 additions and 2 deletions

View file

@ -225,7 +225,7 @@ class acp_reasons
$report_text .= $reason_row['reason_description'] . "\n\n"; $report_text .= $reason_row['reason_description'] . "\n\n";
$sql = 'UPDATE ' . REPORTS_TABLE . ' $sql = 'UPDATE ' . REPORTS_TABLE . '
SET reason_id = ' . $other_reason_id . ", report_text = '" . $db->sql_escape($report_text) "' SET reason_id = ' . $other_reason_id . ", report_text = '" . $db->sql_escape($report_text) . "'
WHERE reason_id = $reason_id"; WHERE reason_id = $reason_id";
$db->sql_query($sql); $db->sql_query($sql);

View file

@ -1702,7 +1702,7 @@ function add_default_groups()
$sql = 'SELECT * $sql = 'SELECT *
FROM ' . GROUPS_TABLE . ' FROM ' . GROUPS_TABLE . '
WHERE ' . $db->sql_in_set('group_name_clean', array_map('utf8_clean_string', array_keys($default_groups)); WHERE ' . $db->sql_in_set('group_name_clean', array_map('utf8_clean_string', array_keys($default_groups)));
$result = $db->sql_query($sql); $result = $db->sql_query($sql);
while ($row = $db->sql_fetchrow($result)) while ($row = $db->sql_fetchrow($result))

View file

@ -103,6 +103,7 @@ if (!$show_guests)
FROM ' . SESSIONS_TABLE . ' FROM ' . SESSIONS_TABLE . '
WHERE session_user_id = ' . ANONYMOUS . ' WHERE session_user_id = ' . ANONYMOUS . '
AND session_time >= ' . (time() - ($config['load_online_time'] * 60)); AND session_time >= ' . (time() - ($config['load_online_time'] * 60));
}
else else
{ {
$sql = 'SELECT COUNT(session_ip) as num_guests $sql = 'SELECT COUNT(session_ip) as num_guests