[Fusionforge-commits] FusionForge branch master updated. 6.0.4-1106-g410ef94

Marc-Etienne VARGENAU vargenau at libremir.placard.fr.eu.org
Wed Oct 26 16:56:27 CEST 2016


This is an automated email from the git hooks/post-receive script. It was
generated because a ref change was pushed to the repository containing
the project "FusionForge".

The branch, master has been updated
       via  410ef94f07971506f0eef5626a92c33425881dfb (commit)
      from  bc08309ceec8de0af8108b9a18f2bd42fbd1f93b (commit)

Those revisions listed above that are new to this repository have
not appeared on any other notification email; so we list those
revisions in full, below.

- Log -----------------------------------------------------------------
https://scm.fusionforge.org/anonscm/gitweb/?p=fusionforge/fusionforge.git;a=commitdiff;h=410ef94f07971506f0eef5626a92c33425881dfb

commit 410ef94f07971506f0eef5626a92c33425881dfb
Author: Marc-Etienne Vargenau <marc-etienne.vargenau at nokia.com>
Date:   Wed Oct 26 16:56:07 2016 +0200

    No intermediate variable needed

diff --git a/src/www/widgets/updatelayout.php b/src/www/widgets/updatelayout.php
index 1cf2952..9b45b66 100644
--- a/src/www/widgets/updatelayout.php
+++ b/src/www/widgets/updatelayout.php
@@ -73,8 +73,7 @@ if ($owner) {
 			$name = null;
 			if ($request->exist('name')) {
 				$param = $request->get('name');
-				$arrKeys = array_keys($param);
-				$name = array_pop($arrKeys);
+				$name = array_pop(array_keys($param));
 				$instance_id = (int)$param[$name];
 			}
 			switch($request->get('action')) {
@@ -82,8 +81,7 @@ if ($owner) {
 					if ($name && $request->exist('layout_id')) {
 						if ($widget = Widget::getInstance($name)) {
 							if ($widget->isAvailable()) {
-								$arrKeys = array_keys($param[$name]);
-								$action = array_pop($arrKeys);
+								$action = array_pop(array_keys($param[$name]));
 								switch($action) {
 									case 'remove':
 										$instance_id = (int)$param[$name][$action];

-----------------------------------------------------------------------

Summary of changes:
 src/www/widgets/updatelayout.php | 6 ++----
 1 file changed, 2 insertions(+), 4 deletions(-)


hooks/post-receive
-- 
FusionForge



More information about the Fusionforge-commits mailing list