summaryrefslogtreecommitdiff
path: root/app/php/controls/TimezoneSelect.php
diff options
context:
space:
mode:
authoremkael <emkael@tlen.pl>2016-04-13 23:26:41 +0200
committeremkael <emkael@tlen.pl>2016-04-13 23:26:41 +0200
commitc1349cc8f23d6186bbaeedd5ea0a06228a16f030 (patch)
tree34813b99c6e47a40692d5923ac85a22b592f509d /app/php/controls/TimezoneSelect.php
parent23ef7357b6fe8b104f196f4ebf1e9d3b960deb95 (diff)
* fixing logout on profile page (not throwing an error after logout on callback)
Diffstat (limited to 'app/php/controls/TimezoneSelect.php')
-rw-r--r--app/php/controls/TimezoneSelect.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/app/php/controls/TimezoneSelect.php b/app/php/controls/TimezoneSelect.php
index 3302e2a..592a9e7 100644
--- a/app/php/controls/TimezoneSelect.php
+++ b/app/php/controls/TimezoneSelect.php
@@ -10,7 +10,7 @@ class TimezoneSelect extends TTemplateControl {
}
public function setUserToChange(DbUser $user) {
- if ($user->IsGuest) {
+ if ($user->IsGuest && !$this->Page->IsCallBack) {
throw new TInvalidDataValueException(
'Timezone preference change impossible for guest user'
);