Fix BookmarkController: Don't throw putting bm in root

This commit is contained in:
Marcel Klehr 2020-01-02 19:17:38 +01:00
parent 6ee05659d0
commit a825f55825
1 changed files with 1 additions and 1 deletions

View File

@ -422,7 +422,7 @@ class BookmarkController extends ApiController {
$bookmark = $this->_addBookmark($title, $url, $description, $this->userId, $tags, [-1]);
} else {
foreach ($folders as $folderId) {
if ($folderId === -1) {
if (((int)$folderId) === -1) {
$bookmark = $this->_addBookmark($title, $url, $description, $this->userId, $tags, [-1]);
}
try {