From 091d6987d41bd4fa164fcdddc5117fd53be23474 Mon Sep 17 00:00:00 2001
From: Laurent Destailleur <eldy@users.sourceforge.net>
Date: Sat, 10 Jan 2009 03:47:35 +0000
Subject: [PATCH] Fix: php error

---
 htdocs/ecm/index.php | 4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)

diff --git a/htdocs/ecm/index.php b/htdocs/ecm/index.php
index c7b22bed631..1f402d9720c 100644
--- a/htdocs/ecm/index.php
+++ b/htdocs/ecm/index.php
@@ -428,7 +428,9 @@ if (empty($action) || $action == 'file_manager' || eregi('refresh',$action) || $
 	//print "fullpathselected=".$fullpathselected."<br>";
 
 	// Update expandedsectionarray in session
-	$expandedsectionarray=split(',',$_SESSION['expandedsectionarray']);
+	$expandedsectionarray=array();
+	if (isset($_SESSION['expandedsectionarray'])) $expandedsectionarray=split(',',$_SESSION['expandedsectionarray']);
+
 	if ($section && $_GET['sectionexpand'] == 'true')
 	{
 		// We add all sections that are parent of opened section
-- 
GitLab