diff options
Diffstat (limited to 'app/php/components')
-rw-r--r-- | app/php/components/PasswordChange.php | 4 | ||||
-rw-r--r-- | app/php/components/TimezoneSelect.php | 8 |
2 files changed, 9 insertions, 3 deletions
diff --git a/app/php/components/PasswordChange.php b/app/php/components/PasswordChange.php index d0a90fb..1224f33 100644 --- a/app/php/components/PasswordChange.php +++ b/app/php/components/PasswordChange.php @@ -10,7 +10,9 @@ class PasswordChange extends TTemplateControl { public function setUserToChange(DbUser $user) { if ($user->IsGuest) { - throw new TInvalidDataValueException('Password change impossible for guest user'); + throw new TInvalidDataValueException( + 'Password change impossible for guest user' + ); } $this->setControlState('user', $user); } diff --git a/app/php/components/TimezoneSelect.php b/app/php/components/TimezoneSelect.php index d97514f..5825b1a 100644 --- a/app/php/components/TimezoneSelect.php +++ b/app/php/components/TimezoneSelect.php @@ -11,7 +11,9 @@ class TimezoneSelect extends TTemplateControl { public function setUserToChange(DbUser $user) { if ($user->IsGuest) { - throw new TInvalidDataValueException('Password change impossible for guest user'); + throw new TInvalidDataValueException( + 'Password change impossible for guest user' + ); } $this->setControlState('user', $user); } @@ -22,7 +24,9 @@ class TimezoneSelect extends TTemplateControl { $this->Timezones->DataValueField = 'Name'; $this->Timezones->DataTextField = 'Label'; $this->Timezones->dataBind(); - $this->Timezones->setSelectedValue($this->UserToChange->getTimezonePreference()->Name); + $this->Timezones->setSelectedValue( + $this->UserToChange->getTimezonePreference()->Name + ); } public function saveTimezone($sender, $param) { |