aboutsummaryrefslogtreecommitdiff
path: root/actions/user
diff options
context:
space:
mode:
Diffstat (limited to 'actions/user')
-rw-r--r--actions/user/default_access.php4
1 files changed, 2 insertions, 2 deletions
diff --git a/actions/user/default_access.php b/actions/user/default_access.php
index 0aacf209c..845e1fbfc 100644
--- a/actions/user/default_access.php
+++ b/actions/user/default_access.php
@@ -24,8 +24,8 @@ if ($CONFIG->allow_user_default_access) {
if ($user) {
$current_default_access = $user->getPrivateSetting('elgg_default_access');
- if ($default_access != $current_default_access) {
- if ($user->setPrivateSetting('elgg_default_access',$default_access)) {
+ if ($default_access !== $current_default_access) {
+ if ($user->setPrivateSetting('elgg_default_access', $default_access)) {
system_message(elgg_echo('user:default_access:success'));
} else {
register_error(elgg_echo('user:default_access:fail'));