From e6991260df29e519f1282d1f34fd7c4d300e122b Mon Sep 17 00:00:00 2001 From: "Marek A. R" Date: Tue, 22 Jan 2008 22:15:30 +0000 Subject: [PATCH] Fix parse errors git-svn-id: file:///svn/phpbb/trunk@8331 89ea8834-ac86-4346-8a33-228a782c2dd0 --- phpBB/includes/acp/acp_reasons.php | 2 +- phpBB/includes/functions_convert.php | 2 +- phpBB/viewonline.php | 1 + 3 files changed, 3 insertions(+), 2 deletions(-) diff --git a/phpBB/includes/acp/acp_reasons.php b/phpBB/includes/acp/acp_reasons.php index 80c8e5323d..7a74c29631 100644 --- a/phpBB/includes/acp/acp_reasons.php +++ b/phpBB/includes/acp/acp_reasons.php @@ -225,7 +225,7 @@ class acp_reasons $report_text .= $reason_row['reason_description'] . "\n\n"; $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"; $db->sql_query($sql); diff --git a/phpBB/includes/functions_convert.php b/phpBB/includes/functions_convert.php index cbf5bdbac2..2084a81236 100644 --- a/phpBB/includes/functions_convert.php +++ b/phpBB/includes/functions_convert.php @@ -1702,7 +1702,7 @@ function add_default_groups() $sql = 'SELECT * 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); while ($row = $db->sql_fetchrow($result)) diff --git a/phpBB/viewonline.php b/phpBB/viewonline.php index c27788c4c8..c7cfe64f4c 100644 --- a/phpBB/viewonline.php +++ b/phpBB/viewonline.php @@ -103,6 +103,7 @@ if (!$show_guests) FROM ' . SESSIONS_TABLE . ' WHERE session_user_id = ' . ANONYMOUS . ' AND session_time >= ' . (time() - ($config['load_online_time'] * 60)); + } else { $sql = 'SELECT COUNT(session_ip) as num_guests