From 3eda71a355f17726c6530b2f077e9dc666950cb2 Mon Sep 17 00:00:00 2001
From: mdtrooper <tres.14159@gmail.com>
Date: Tue, 16 Apr 2013 16:14:42 +0000
Subject: [PATCH] 2013-04-16 Miguel de Dios <miguel.dedios@artica.es>

	* godmode/groups/group_list.php: fixed notice PHP.




git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@7996 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
---
 pandora_console/ChangeLog                     | 4 ++++
 pandora_console/godmode/groups/group_list.php | 9 +++++++--
 2 files changed, 11 insertions(+), 2 deletions(-)

diff --git a/pandora_console/ChangeLog b/pandora_console/ChangeLog
index 0a1253ec52..3148f245e3 100644
--- a/pandora_console/ChangeLog
+++ b/pandora_console/ChangeLog
@@ -1,3 +1,7 @@
+2013-04-16 Miguel de Dios <miguel.dedios@artica.es>
+
+	* godmode/groups/group_list.php: fixed notice PHP.
+
 2013-04-16  Sergio Martin <sergio.martin@artica.es>
 
 	* include/db/mysql.php: Fix a bug with the dbresource in the 
diff --git a/pandora_console/godmode/groups/group_list.php b/pandora_console/godmode/groups/group_list.php
index dec48ad7ae..f8e8d22a53 100644
--- a/pandora_console/godmode/groups/group_list.php
+++ b/pandora_console/godmode/groups/group_list.php
@@ -329,7 +329,12 @@ if (!empty($groups)) {
 			$symbol = '+';
 		}
 		
-		if ($group['hash_branch']) {
+		$group_hash_branch = false;
+		if (isset($group['hash_branch'])) {
+			$group_hash_branch = $group['hash_branch'];
+		}
+		
+		if ($group_hash_branch) {
 			$data[0] = '<strong>'.$tabulation . ' ' . 
 				'<a href="javascript: showBranch(' . $group['id_grupo'] .
 				', ' . $group['parent'] . ');" title="' . __('Show branch children') .
@@ -337,7 +342,7 @@ if (!empty($groups)) {
 				$symbol . '</span> '. ui_print_truncate_text($group['nombre']) . '</a></strong>';
 		}
 		else {
-			$data[0] = '<strong>'.$tabulation . ' ' . ui_print_truncate_text($group['nombre']) . '</strong>';
+			$data[0] = '<strong>' . $tabulation . ' ' . ui_print_truncate_text($group['nombre']) . '</strong>';
 		}
 		$data[1] = $group['id_grupo'];
 		$data[2] = ui_print_group_icon($group['id_grupo'], true);