[Fusionforge-commits] FusionForge branch Branch_5_3 updated. 177eca1537abc5f6f7253400563fb7a64b4565ac

Roland Mas lolando at fusionforge.org
Wed Mar 26 13:52:54 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, Branch_5_3 has been updated
       via  177eca1537abc5f6f7253400563fb7a64b4565ac (commit)
      from  f281b00e1460637528086353bd70b998fa243e13 (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 177eca1537abc5f6f7253400563fb7a64b4565ac
Author: Roland Mas <lolando at debian.org>
Date:   Wed Mar 26 13:52:53 2014 +0100

    Fixed PHP warning

diff --git a/src/common/include/PluginManager.class.php b/src/common/include/PluginManager.class.php
index 50bd4c9..e72bdd8 100644
--- a/src/common/include/PluginManager.class.php
+++ b/src/common/include/PluginManager.class.php
@@ -23,7 +23,6 @@
 
 class PluginManager extends Error {
 	var $plugins_objects;
-	var $plugins_data;
 	var $plugins_to_hooks;
 	var $hooks_to_plugins;
 	var $returned_values = array();
@@ -135,7 +134,10 @@ class PluginManager extends Error {
 		$res = db_query_params('DELETE FROM plugins WHERE plugin_name = $1', array($pluginname));
 
 		$p_id = NULL;
-
+		
+		if (!isset($this->plugins_data)) {
+			$this->plugins_data = array();
+		}
 		foreach ($this->plugins_data as $i => $n) {
 			if ($n == $pluginname) {
 				$p_id = $i;

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

Summary of changes:
 src/common/include/PluginManager.class.php |    6 ++++--
 1 file changed, 4 insertions(+), 2 deletions(-)


hooks/post-receive
-- 
FusionForge



More information about the Fusionforge-commits mailing list