summaryrefslogtreecommitdiff
path: root/inc/actions.php
diff options
context:
space:
mode:
Diffstat (limited to 'inc/actions.php')
-rw-r--r--inc/actions.php12
1 files changed, 9 insertions, 3 deletions
diff --git a/inc/actions.php b/inc/actions.php
index 694f78208..735179968 100644
--- a/inc/actions.php
+++ b/inc/actions.php
@@ -68,9 +68,15 @@ function act_dispatch(){
}
//update user profile
- if (($ACT == 'profile') && updateprofile()) {
- msg($lang['profchanged'],1);
- $ACT = 'show';
+ if ($ACT == 'profile') {
+ if(!$_SERVER['REMOTE_USER']) {
+ $ACT = 'login';
+ } else {
+ if(updateprofile()) {
+ msg($lang['profchanged'],1);
+ $ACT = 'show';
+ }
+ }
}
//save