diff options
Diffstat (limited to 'src/Wallabag')
-rw-r--r-- | src/Wallabag/CoreBundle/Twig/WallabagExtension.php | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/Wallabag/CoreBundle/Twig/WallabagExtension.php b/src/Wallabag/CoreBundle/Twig/WallabagExtension.php index 59eb57ec..3780b13e 100644 --- a/src/Wallabag/CoreBundle/Twig/WallabagExtension.php +++ b/src/Wallabag/CoreBundle/Twig/WallabagExtension.php | |||
@@ -54,7 +54,7 @@ class WallabagExtension extends \Twig_Extension implements \Twig_Extension_Globa | |||
54 | $user = $this->tokenStorage->getToken() ? $this->tokenStorage->getToken()->getUser() : null; | 54 | $user = $this->tokenStorage->getToken() ? $this->tokenStorage->getToken()->getUser() : null; |
55 | 55 | ||
56 | if (null === $user || !is_object($user)) { | 56 | if (null === $user || !is_object($user)) { |
57 | return []; | 57 | return 0; |
58 | } | 58 | } |
59 | 59 | ||
60 | switch ($type) { | 60 | switch ($type) { |
@@ -101,7 +101,7 @@ class WallabagExtension extends \Twig_Extension implements \Twig_Extension_Globa | |||
101 | $user = $this->tokenStorage->getToken() ? $this->tokenStorage->getToken()->getUser() : null; | 101 | $user = $this->tokenStorage->getToken() ? $this->tokenStorage->getToken()->getUser() : null; |
102 | 102 | ||
103 | if (null === $user || !is_object($user)) { | 103 | if (null === $user || !is_object($user)) { |
104 | return []; | 104 | return 0; |
105 | } | 105 | } |
106 | 106 | ||
107 | $qb = $this->tagRepository->findAllTags($user->getId()); | 107 | $qb = $this->tagRepository->findAllTags($user->getId()); |