aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--phpBB/includes/acp/acp_reasons.php2
-rw-r--r--phpBB/includes/functions_convert.php2
-rw-r--r--phpBB/viewonline.php1
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