fixed bug for #1242

This commit is contained in:
Thomas Citharel 2015-07-17 23:13:56 +02:00
parent 4a746679c8
commit c129374147

View file

@ -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);
}