From 25b2a98c678f2fdf4d665b0bf28b1be559032414 Mon Sep 17 00:00:00 2001 From: Michael Klier Date: Mon, 17 Nov 2008 16:44:09 +0100 Subject: show update profile dialog only when logged in darcs-hash:20081117154409-23886-d0ad833c6bcf96bcc54f6998397de90ff07b7686.gz --- inc/actions.php | 12 +++++++++--- 1 file changed, 9 insertions(+), 3 deletions(-) (limited to 'inc/actions.php') 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 -- cgit v1.2.3