diff --git a/phpBB/includes/acp/auth.php b/phpBB/includes/acp/auth.php
index 928f3b7dca..c1e1c4cc5e 100644
--- a/phpBB/includes/acp/auth.php
+++ b/phpBB/includes/acp/auth.php
@@ -845,11 +845,6 @@ class auth_admin extends auth
}
}
- // Remove current auth options...
- $sql = 'DELETE FROM ' . ACL_ROLES_DATA_TABLE . '
- WHERE role_id = ' . $role_id;
- $db->sql_query($sql);
-
$sql_ary = array();
foreach ($auth as $auth_option => $setting)
{
@@ -865,6 +860,21 @@ class auth_admin extends auth
}
}
+ // If no data is there, we set the any-flag to ACL_NO...
+ if (!sizeof($sql_ary))
+ {
+ $sql_ary[] = array(
+ 'role_id' => (int) $role_id,
+ 'auth_option_id' => $this->option_ids[$flag],
+ 'auth_setting' => ACL_NO
+ );
+ }
+
+ // Remove current auth options...
+ $sql = 'DELETE FROM ' . ACL_ROLES_DATA_TABLE . '
+ WHERE role_id = ' . $role_id;
+ $db->sql_query($sql);
+
switch (SQL_LAYER)
{
case 'mysql':
diff --git a/phpBB/language/en/acp/common.php b/phpBB/language/en/acp/common.php
index fce5b98a7e..c8b7e07087 100644
--- a/phpBB/language/en/acp/common.php
+++ b/phpBB/language/en/acp/common.php
@@ -512,7 +512,7 @@ $lang = array_merge($lang, array(
'LOG_USER_MOVE_POSTS' => 'Moved user posts
» posts by "%s" to forum "%s"',
'LOG_USER_NEW_PASSWORD' => 'Changed user password
» %s',
'LOG_USER_REACTIVATE' => 'Forced user account re-activation
» %s',
- 'LOG_USER_UPDATE_EMAIL' => 'User "%s" changed email» from "%s" to "%s"',
+ 'LOG_USER_UPDATE_EMAIL' => 'User "%s" changed email
» from "%s" to "%s"',
'LOG_USER_UPDATE_NAME' => 'Changed username
» from "%s" to "%s"',
'LOG_USER_USER_UPDATE' => 'Updated user details
» %s',