1
0
Fork 0
mirror of https://github.com/wallabag/wallabag.git synced 2025-09-15 18:57:05 +00:00

Few fixes

This commit is contained in:
Jeremy Benoist 2017-06-10 15:37:25 +02:00
parent 1112e54772
commit a9c6577f0c
No known key found for this signature in database
GPG key ID: BCA73962457ACC3C
3 changed files with 4 additions and 3 deletions

View file

@ -680,10 +680,10 @@ class EntryRestController extends WallabagRestController
}
if (!is_null($isPublic)) {
$entry->cleanUid();
if (true === (bool) $isPublic && null === $entry->getUid()) {
$entry->generateUid();
} else if (false === (bool) $isPublic) {
$entry->cleanUid();
}
}