From: Zach Copley Date: Tue, 16 Jun 2009 07:56:32 +0000 (-0700) Subject: Update wasn't ever getting called X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=6d5d0b3472038b0a2cbe86c7df5f062853164dec;p=quix0rs-gnu-social.git Update wasn't ever getting called --- diff --git a/actions/designsettings.php b/actions/designsettings.php index b7f9cda987..c5aa8c1d37 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);