forked from wallabag/wallabag
fixed bug for #1242
This commit is contained in:
@ -266,10 +266,10 @@ class Database {
|
|||||||
{
|
{
|
||||||
$entries = $this->retrieveAll($userID);
|
$entries = $this->retrieveAll($userID);
|
||||||
if ($entries) {
|
if ($entries) {
|
||||||
foreach($entries as $entryid) {
|
foreach($entries as $entry) {
|
||||||
$tags = $this->retrieveTagsByEntry($entryid);
|
$tags = $this->retrieveTagsByEntry($entry['id']);
|
||||||
foreach($tags as $tag) {
|
foreach($tags as $tag) {
|
||||||
$this->removeTagForEntry($entryid,$tags);
|
$this->removeTagForEntry($entry['id'], $tags);
|
||||||
}
|
}
|
||||||
$this->deleteById($entryid,$userID);
|
$this->deleteById($entryid,$userID);
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user