diff --git a/phpBB/includes/ucp/ucp_register.php b/phpBB/includes/ucp/ucp_register.php
index 372eecbb57..0c49cd1a5c 100644
--- a/phpBB/includes/ucp/ucp_register.php
+++ b/phpBB/includes/ucp/ucp_register.php
@@ -417,7 +417,7 @@ class ucp_register
}
// Perform account linking if necessary
- if ($login_link_data !== array())
+ if (!empty($login_link_data))
{
$login_link_data['user_id'] = $user_id;
diff --git a/phpBB/styles/prosilver/template/login_body_oauth.html b/phpBB/styles/prosilver/template/login_body_oauth.html
index dbbe011c58..156485d211 100644
--- a/phpBB/styles/prosilver/template/login_body_oauth.html
+++ b/phpBB/styles/prosilver/template/login_body_oauth.html
@@ -4,5 +4,5 @@
{oauth.SERVICE_NAME}
-
+
diff --git a/phpBB/styles/prosilver/template/ucp_login_link.html b/phpBB/styles/prosilver/template/ucp_login_link.html
index baf7d56176..d3c6931ce3 100644
--- a/phpBB/styles/prosilver/template/ucp_login_link.html
+++ b/phpBB/styles/prosilver/template/ucp_login_link.html
@@ -18,7 +18,7 @@
@@ -32,21 +32,21 @@
{LOGIN_ERROR}
-
+
-
+
-
+
{S_LOGIN_REDIRECT}
-
- - {S_HIDDEN_FIELDS}
+ - {S_HIDDEN_FIELDS}
diff --git a/tests/auth/provider_oauth_token_storage_test.php b/tests/auth/provider_oauth_token_storage_test.php
index 223d4dfb93..401f049405 100644
--- a/tests/auth/provider_oauth_token_storage_test.php
+++ b/tests/auth/provider_oauth_token_storage_test.php
@@ -197,7 +197,7 @@ class phpbb_auth_provider_oauth_token_storage_test extends phpbb_database_test_c
{
// Test that the token is stored in the database
$sql = 'SELECT * FROM phpbb_oauth_tokens
- WHERE session_id = \'' . $session_id . '\'';
+ WHERE session_id = \'' . $this->db->sql_escape($session_id) . '\'';
$result = $this->db->sql_query($sql);
$row = $this->db->sql_fetchrow($result);
$this->db->sql_freeresult($result);