mirror of
https://github.com/wallabag/wallabag.git
synced 2024-11-29 04:21:06 +00:00
fixed bug for #1242
This commit is contained in:
parent
4a746679c8
commit
c129374147
1 changed files with 3 additions and 3 deletions
|
@ -266,10 +266,10 @@ class Database {
|
|||
{
|
||||
$entries = $this->retrieveAll($userID);
|
||||
if ($entries) {
|
||||
foreach($entries as $entryid) {
|
||||
$tags = $this->retrieveTagsByEntry($entryid);
|
||||
foreach($entries as $entry) {
|
||||
$tags = $this->retrieveTagsByEntry($entry['id']);
|
||||
foreach($tags as $tag) {
|
||||
$this->removeTagForEntry($entryid,$tags);
|
||||
$this->removeTagForEntry($entry['id'], $tags);
|
||||
}
|
||||
$this->deleteById($entryid,$userID);
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue