From c129374147de3da613bf10124778ee59070d2a66 Mon Sep 17 00:00:00 2001 From: Thomas Citharel Date: Fri, 17 Jul 2015 23:13:56 +0200 Subject: [PATCH] fixed bug for #1242 --- inc/poche/Database.class.php | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/inc/poche/Database.class.php b/inc/poche/Database.class.php index 28d4a232b..3b1f0af2c 100755 --- a/inc/poche/Database.class.php +++ b/inc/poche/Database.class.php @@ -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); }