aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/Wallabag/ApiBundle/Controller/EntryRestController.php
diff options
context:
space:
mode:
authorJeremy Benoist <jeremy.benoist@gmail.com>2017-06-10 15:37:25 +0200
committerJeremy Benoist <jeremy.benoist@gmail.com>2017-06-10 15:37:25 +0200
commita9c6577f0c51dd4282e022fa4b41cbb7b0e201b3 (patch)
treec50b4511d2855fe0e46aea9656ab9629b1fa8030 /src/Wallabag/ApiBundle/Controller/EntryRestController.php
parent1112e54772c9308ee3d7417869b5b8ef9b2b9812 (diff)
downloadwallabag-a9c6577f0c51dd4282e022fa4b41cbb7b0e201b3.tar.gz
wallabag-a9c6577f0c51dd4282e022fa4b41cbb7b0e201b3.tar.zst
wallabag-a9c6577f0c51dd4282e022fa4b41cbb7b0e201b3.zip
Few fixes
Diffstat (limited to 'src/Wallabag/ApiBundle/Controller/EntryRestController.php')
-rw-r--r--src/Wallabag/ApiBundle/Controller/EntryRestController.php4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/Wallabag/ApiBundle/Controller/EntryRestController.php b/src/Wallabag/ApiBundle/Controller/EntryRestController.php
index ae9a93aa..afd708e6 100644
--- a/src/Wallabag/ApiBundle/Controller/EntryRestController.php
+++ b/src/Wallabag/ApiBundle/Controller/EntryRestController.php
@@ -680,10 +680,10 @@ class EntryRestController extends WallabagRestController
680 } 680 }
681 681
682 if (!is_null($isPublic)) { 682 if (!is_null($isPublic)) {
683 $entry->cleanUid();
684
685 if (true === (bool) $isPublic && null === $entry->getUid()) { 683 if (true === (bool) $isPublic && null === $entry->getUid()) {
686 $entry->generateUid(); 684 $entry->generateUid();
685 } else if (false === (bool) $isPublic) {
686 $entry->cleanUid();
687 } 687 }
688 } 688 }
689 689