From cceb4ea5de31efdadd5feb2bfc756c03b4ba4882 Mon Sep 17 00:00:00 2001 From: Olivier Berger Date: Fri, 26 Aug 2011 10:55:04 +0000 Subject: [PATCH] Rewrite unclear assignment inside if --- src/common/widget/WidgetLayoutManager.class.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/common/widget/WidgetLayoutManager.class.php b/src/common/widget/WidgetLayoutManager.class.php index 29d5b4f2a4..6a4b8f0d0a 100644 --- a/src/common/widget/WidgetLayoutManager.class.php +++ b/src/common/widget/WidgetLayoutManager.class.php @@ -241,7 +241,8 @@ class WidgetLayoutManager { $url = "/widgets/widgets.php?owner=".HTTPRequest::instance()->get('owner'). "&layout_id=".HTTPRequest::instance()->get('layout_id'); - if ($update_layout = HTTPRequest::instance()->get('update') == 'layout') { + $update_layout = (HTTPRequest::instance()->get('update') == 'layout'); + if ($update_layout) { // customized selected echo '
  • '. _("Add widgets") .'
  • '; echo '
  • '. _("Customize layout") .'
  • '; -- 2.30.2