Set distinct file names

Este commit está contenido en:
Marsender 2013-10-10 07:33:25 +01:00
padre 3907384e11
commit 6fdb2f9fff
Se han modificado 2 ficheros con 6 adiciones y 6 borrados

Ver fichero

@ -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;
}
}
}

Ver fichero

@ -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;
}
}
}