diff --git a/app/edit/filelist.php b/app/edit/filelist.php
index 8ee59f80a8..2b90bf9c31 100644
--- a/app/edit/filelist.php
+++ b/app/edit/filelist.php
@@ -198,7 +198,7 @@ echo "
\n";
//start the session
ini_set("session.cookie_httponly", True);
-session_start();
+if (!isset($_SESSION)) { session_start(); }
switch ($_SESSION["app"]["edit"]["dir"]) {
case 'scripts':
echo recur_dir($_SESSION['switch']['scripts']['dir']);
@@ -242,4 +242,4 @@ unset ($result);
unset ($key);
unset ($val);
unset ($c);
-?>
\ No newline at end of file
+?>