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