aboutsummaryrefslogtreecommitdiff
path: root/actions/user/default_access.php
diff options
context:
space:
mode:
authorcash <cash@36083f99-b078-4883-b0ff-0f9b5a30f544>2010-08-22 23:15:43 +0000
committercash <cash@36083f99-b078-4883-b0ff-0f9b5a30f544>2010-08-22 23:15:43 +0000
commit60c1387a16ea4944674b0c9da2273158d1fbf0b4 (patch)
tree6f94aaf77a7d794f489212ff50f08f5211a18126 /actions/user/default_access.php
parentca08eb6d170d375ef4fca53604956f3474c7db19 (diff)
downloadelgg-60c1387a16ea4944674b0c9da2273158d1fbf0b4.tar.gz
elgg-60c1387a16ea4944674b0c9da2273158d1fbf0b4.tar.bz2
Merged r6757:6810 from 1.7 branch into trunk
git-svn-id: http://code.elgg.org/elgg/trunk@6850 36083f99-b078-4883-b0ff-0f9b5a30f544
Diffstat (limited to 'actions/user/default_access.php')
-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'));