From 48ea06047669b3bc719832dafb88fedf1d929964 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Tim=20D=C3=BCsterhus?= Date: Sun, 26 May 2013 17:24:44 +0200 Subject: [PATCH] Fix RestoreCommand --- file/lib/system/command/commands/RestoreCommand.class.php | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/file/lib/system/command/commands/RestoreCommand.class.php b/file/lib/system/command/commands/RestoreCommand.class.php index 92dba9b..f4c8d9c 100644 --- a/file/lib/system/command/commands/RestoreCommand.class.php +++ b/file/lib/system/command/commands/RestoreCommand.class.php @@ -30,6 +30,11 @@ public function __construct(\chat\system\command\CommandHandler $commandHandler) )); $this->link = "[url='".$profile."']".$this->user->username.'[/url]'; + $editor = new \wcf\data\user\UserEditor($this->user); + $editor->update(array( + 'chatColor1' => 0, + 'chatColor2' => 0 + )); $this->didInit(); }