aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/Wallabag/CoreBundle/Controller
diff options
context:
space:
mode:
Diffstat (limited to 'src/Wallabag/CoreBundle/Controller')
-rw-r--r--src/Wallabag/CoreBundle/Controller/WallabagRestController.php2
1 files changed, 0 insertions, 2 deletions
diff --git a/src/Wallabag/CoreBundle/Controller/WallabagRestController.php b/src/Wallabag/CoreBundle/Controller/WallabagRestController.php
index 711e7bb2..fae633fa 100644
--- a/src/Wallabag/CoreBundle/Controller/WallabagRestController.php
+++ b/src/Wallabag/CoreBundle/Controller/WallabagRestController.php
@@ -140,7 +140,6 @@ class WallabagRestController extends Controller
140 } 140 }
141 141
142 $em = $this->getDoctrine()->getManager(); 142 $em = $this->getDoctrine()->getManager();
143 $em->persist($entry);
144 $em->flush(); 143 $em->flush();
145 144
146 return $entry; 145 return $entry;
@@ -163,7 +162,6 @@ class WallabagRestController extends Controller
163 162
164 $em = $this->getDoctrine()->getManager(); 163 $em = $this->getDoctrine()->getManager();
165 $entry->setDeleted(1); 164 $entry->setDeleted(1);
166 $em->persist($entry);
167 $em->flush(); 165 $em->flush();
168 166
169 return $entry; 167 return $entry;