[Fusionforge-commits] FusionForge branch master updated. c5f7eba2b14d95f10fb064085566b43fa9bbd3f4

Franck Villaume nerville at fusionforge.org
Wed Dec 10 11:25:47 CET 2014


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  c5f7eba2b14d95f10fb064085566b43fa9bbd3f4 (commit)
      from  eeaa64ba018730009e009d25e9c381d8a04d9639 (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 -----------------------------------------------------------------
commit c5f7eba2b14d95f10fb064085566b43fa9bbd3f4
Author: Franck Villaume <franck.villaume at trivialdev.com>
Date:   Wed Dec 10 11:24:12 2014 +0100

    fix php warning

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

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

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


hooks/post-receive
-- 
FusionForge



More information about the Fusionforge-commits mailing list