forked from wallabag/wallabag
CS
This commit is contained in:
@ -165,7 +165,7 @@ abstract class AbstractImport implements ImportInterface
|
||||
$entryToBeFlushed[] = $entry;
|
||||
|
||||
// flush every 20 entries
|
||||
if (($i % 20) === 0) {
|
||||
if (0 === ($i % 20)) {
|
||||
$this->em->flush();
|
||||
|
||||
foreach ($entryToBeFlushed as $entry) {
|
||||
|
||||
Reference in New Issue
Block a user