From 8b4883c36c7adc6e658162402af1c337cd8a2a8d Mon Sep 17 00:00:00 2001 From: markjcrane Date: Fri, 29 Apr 2016 17:13:36 -0600 Subject: [PATCH] Make sure the array exists for the backup tool. --- app/backup/index.php | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/app/backup/index.php b/app/backup/index.php index aa65e92045..7cbd8bc424 100644 --- a/app/backup/index.php +++ b/app/backup/index.php @@ -17,7 +17,7 @@ The Initial Developer of the Original Code is Mark J Crane - Portions created by the Initial Developer are Copyright (C) 2008-2012 + Portions created by the Initial Developer are Copyright (C) 2008-2016 the Initial Developer. All Rights Reserved. Contributor(s): @@ -55,7 +55,7 @@ else { default : $cmd = 'tar -zvcf '; } $cmd .= $backup_path.'/'.$backup_file.' '; - foreach ($_SESSION['backup']['path'] as $value) { + if (isset($_SESSION['backup']['path'])) foreach ($_SESSION['backup']['path'] as $value) { $cmd .= $value.' '; } exec($cmd); @@ -174,7 +174,7 @@ else { echo " ".$text['label-source_paths']."\n"; echo "\n"; echo "\n"; - foreach ($_SESSION['backup']['path'] as $backup_path) { + if (isset($_SESSION['backup']['path'])) foreach ($_SESSION['backup']['path'] as $backup_path) { echo $backup_path."
\n"; } echo "";