Set distinct file names

This commit is contained in:
Marsender 2013-10-10 07:33:25 +01:00
parent 3907384e11
commit 6fdb2f9fff
2 changed files with 6 additions and 6 deletions

View file

@ -15,10 +15,10 @@ try {
// Add the epub files into the export file
if (!empty($dbConfig['epub_path'])) {
$fileList = RecursiveGlob($dbConfig['epub_path'], '*.epub');
foreach ($fileList as $fileName) {
$error = $export->AddEpub($fileName);
foreach ($fileList as $file) {
$error = $export->AddEpub($file);
if (!empty($error)) {
$gErrorArray[$fileName] = $error;
$gErrorArray[$file] = $error;
}
}
}

View file

@ -15,10 +15,10 @@ try {
// Add the epub files into the database
if (!empty($dbConfig['epub_path'])) {
$fileList = RecursiveGlob($dbConfig['epub_path'], '*.epub');
foreach ($fileList as $fileName) {
$error = $db->AddEpub($fileName);
foreach ($fileList as $file) {
$error = $db->AddEpub($file);
if (!empty($error)) {
$gErrorArray[$fileName] = $error;
$gErrorArray[$file] = $error;
}
}
}