diff options
author | Zach Copley <zach@controlyourself.ca> | 2009-06-16 00:56:32 -0700 |
---|---|---|
committer | Zach Copley <zach@controlyourself.ca> | 2009-06-16 00:56:32 -0700 |
commit | 6d5d0b3472038b0a2cbe86c7df5f062853164dec (patch) | |
tree | f455084072631e84f1efab95b34445b14aea5411 /actions | |
parent | c3c30aa0eafd42cf6544cb32614ffe164bfd9ca2 (diff) |
Update wasn't ever getting called
Diffstat (limited to 'actions')
-rw-r--r-- | actions/designsettings.php | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/actions/designsettings.php b/actions/designsettings.php index b7f9cda98..c5aa8c1d3 100644 --- a/actions/designsettings.php +++ b/actions/designsettings.php @@ -325,17 +325,17 @@ class DesignsettingsAction extends AccountSettingsAction return; } - $design = User::getDesign(); + $design = $user->getDesign(); - if (!isset($design)) { + if (!empty($design)) { $original = clone($design); - $original->backgroundcolor = $bgcolor->intValue(); - $original->contentcolor = $ccolor->intValue(); - $original->sidebarcolor = $sbcolor->intValue(); - $original->textcolor = $tcolor->intValue(); - $original->linkcolor = $lcolor->intValue(); + $design->backgroundcolor = $bgcolor->intValue(); + $design->contentcolor = $ccolor->intValue(); + $design->sidebarcolor = $sbcolor->intValue(); + $design->textcolor = $tcolor->intValue(); + $design->linkcolor = $lcolor->intValue(); $result = $design->update($original); |