Make sure the array exists for the backup tool.

This commit is contained in:
markjcrane 2016-04-29 17:13:36 -06:00
parent d3ea04c602
commit 8b4883c36c
1 changed files with 3 additions and 3 deletions

View File

@ -17,7 +17,7 @@
The Initial Developer of the Original Code is The Initial Developer of the Original Code is
Mark J Crane <markjcrane@fusionpbx.com> Mark J Crane <markjcrane@fusionpbx.com>
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. the Initial Developer. All Rights Reserved.
Contributor(s): Contributor(s):
@ -55,7 +55,7 @@ else {
default : $cmd = 'tar -zvcf '; default : $cmd = 'tar -zvcf ';
} }
$cmd .= $backup_path.'/'.$backup_file.' '; $cmd .= $backup_path.'/'.$backup_file.' ';
foreach ($_SESSION['backup']['path'] as $value) { if (isset($_SESSION['backup']['path'])) foreach ($_SESSION['backup']['path'] as $value) {
$cmd .= $value.' '; $cmd .= $value.' ';
} }
exec($cmd); exec($cmd);
@ -174,7 +174,7 @@ else {
echo " ".$text['label-source_paths']."\n"; echo " ".$text['label-source_paths']."\n";
echo "</td>\n"; echo "</td>\n";
echo "<td width='70%' class='vtable' align='left'>\n"; echo "<td width='70%' class='vtable' align='left'>\n";
foreach ($_SESSION['backup']['path'] as $backup_path) { if (isset($_SESSION['backup']['path'])) foreach ($_SESSION['backup']['path'] as $backup_path) {
echo $backup_path."<br>\n"; echo $backup_path."<br>\n";
} }
echo "</td>"; echo "</td>";