diff options
Diffstat (limited to 'src/Wallabag/ImportBundle/Import/AbstractImport.php')
-rw-r--r-- | src/Wallabag/ImportBundle/Import/AbstractImport.php | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/Wallabag/ImportBundle/Import/AbstractImport.php b/src/Wallabag/ImportBundle/Import/AbstractImport.php index cb46db09..58a234f4 100644 --- a/src/Wallabag/ImportBundle/Import/AbstractImport.php +++ b/src/Wallabag/ImportBundle/Import/AbstractImport.php | |||
@@ -165,7 +165,7 @@ abstract class AbstractImport implements ImportInterface | |||
165 | $entryToBeFlushed[] = $entry; | 165 | $entryToBeFlushed[] = $entry; |
166 | 166 | ||
167 | // flush every 20 entries | 167 | // flush every 20 entries |
168 | if (($i % 20) === 0) { | 168 | if (0 === ($i % 20)) { |
169 | $this->em->flush(); | 169 | $this->em->flush(); |
170 | 170 | ||
171 | foreach ($entryToBeFlushed as $entry) { | 171 | foreach ($entryToBeFlushed as $entry) { |