This commit is contained in:
Jeremy Benoist 2017-06-10 16:08:24 +02:00
parent a9c6577f0c
commit d9da186fb8
No known key found for this signature in database
GPG key ID: BCA73962457ACC3C

View file

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