aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/Wallabag/CoreBundle/Controller
diff options
context:
space:
mode:
authorJeremy Benoist <jeremy.benoist@gmail.com>2016-01-21 16:37:25 +0100
committerJeremy Benoist <jeremy.benoist@gmail.com>2016-01-21 16:37:25 +0100
commita0d6ccc5ca0dc0082467cc65b006150aff2488c4 (patch)
treea5f405e032a2eb8268427ad8c6106cb7d6ffe4dd /src/Wallabag/CoreBundle/Controller
parente56983af1f7b74993784687e7b192a898422fe7f (diff)
downloadwallabag-a0d6ccc5ca0dc0082467cc65b006150aff2488c4.tar.gz
wallabag-a0d6ccc5ca0dc0082467cc65b006150aff2488c4.tar.zst
wallabag-a0d6ccc5ca0dc0082467cc65b006150aff2488c4.zip
Fix bad type after using findByUrlAndUserId
It returns an object since few commits this part of (untested) code still use an array. Also add test for that part of code.
Diffstat (limited to 'src/Wallabag/CoreBundle/Controller')
-rw-r--r--src/Wallabag/CoreBundle/Controller/EntryController.php4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/Wallabag/CoreBundle/Controller/EntryController.php b/src/Wallabag/CoreBundle/Controller/EntryController.php
index 9dd904f1..3e1b512f 100644
--- a/src/Wallabag/CoreBundle/Controller/EntryController.php
+++ b/src/Wallabag/CoreBundle/Controller/EntryController.php
@@ -54,10 +54,10 @@ class EntryController extends Controller
54 if (false !== $existingEntry) { 54 if (false !== $existingEntry) {
55 $this->get('session')->getFlashBag()->add( 55 $this->get('session')->getFlashBag()->add(
56 'notice', 56 'notice',
57 'Entry already saved on '.$existingEntry['createdAt']->format('d-m-Y') 57 'Entry already saved on '.$existingEntry->getCreatedAt()->format('d-m-Y')
58 ); 58 );
59 59
60 return $this->redirect($this->generateUrl('view', array('id' => $existingEntry['id']))); 60 return $this->redirect($this->generateUrl('view', array('id' => $existingEntry->getId())));
61 } 61 }
62 62
63 $this->updateEntry($entry); 63 $this->updateEntry($entry);