aboutsummaryrefslogtreecommitdiffhomepage
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/Wallabag/CoreBundle/Controller/WallabagRestController.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/Wallabag/CoreBundle/Controller/WallabagRestController.php b/src/Wallabag/CoreBundle/Controller/WallabagRestController.php
index eb19f0f5..abbf5437 100644
--- a/src/Wallabag/CoreBundle/Controller/WallabagRestController.php
+++ b/src/Wallabag/CoreBundle/Controller/WallabagRestController.php
@@ -87,7 +87,7 @@ class WallabagRestController extends Controller
87 $entry = new Entries(); 87 $entry = new Entries();
88 $entry->setUserId(1); 88 $entry->setUserId(1);
89 $entry->setUrl($url); 89 $entry->setUrl($url);
90 $entry->setTitle(!is_null($request->request->get('title')) ? $request->request->get('title') : $content->getTitle()); 90 $entry->setTitle($request->request->get('title') ?: $content->getTitle());
91 $entry->setContent($content->getBody()); 91 $entry->setContent($content->getBody());
92 $em = $this->getDoctrine()->getManager(); 92 $em = $this->getDoctrine()->getManager();
93 $em->persist($entry); 93 $em->persist($entry);