diff options
author | Jeremy Benoist <jeremy.benoist@gmail.com> | 2017-10-09 16:47:15 +0200 |
---|---|---|
committer | Jeremy Benoist <jeremy.benoist@gmail.com> | 2017-10-09 16:47:15 +0200 |
commit | 3ef055ced3d6ea0d2f15ba660602545f477e9c3c (patch) | |
tree | 800dfcf6cd276650cfc6626d641e4fbf65a0bb68 /src/Wallabag/ImportBundle/Import/BrowserImport.php | |
parent | f40c88eb1fa349aab600f9c1c94364f317fe62dd (diff) | |
download | wallabag-3ef055ced3d6ea0d2f15ba660602545f477e9c3c.tar.gz wallabag-3ef055ced3d6ea0d2f15ba660602545f477e9c3c.tar.zst wallabag-3ef055ced3d6ea0d2f15ba660602545f477e9c3c.zip |
CS
Diffstat (limited to 'src/Wallabag/ImportBundle/Import/BrowserImport.php')
-rw-r--r-- | src/Wallabag/ImportBundle/Import/BrowserImport.php | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/Wallabag/ImportBundle/Import/BrowserImport.php b/src/Wallabag/ImportBundle/Import/BrowserImport.php index 78077324..b5593180 100644 --- a/src/Wallabag/ImportBundle/Import/BrowserImport.php +++ b/src/Wallabag/ImportBundle/Import/BrowserImport.php | |||
@@ -171,7 +171,7 @@ abstract class BrowserImport extends AbstractImport | |||
171 | $entryToBeFlushed[] = $entry; | 171 | $entryToBeFlushed[] = $entry; |
172 | 172 | ||
173 | // flush every 20 entries | 173 | // flush every 20 entries |
174 | if (($i % 20) === 0) { | 174 | if (0 === ($i % 20)) { |
175 | $this->em->flush(); | 175 | $this->em->flush(); |
176 | 176 | ||
177 | foreach ($entryToBeFlushed as $entry) { | 177 | foreach ($entryToBeFlushed as $entry) { |