diff options
author | Thomas Citharel <tcit@tcit.fr> | 2015-07-17 23:13:56 +0200 |
---|---|---|
committer | Thomas Citharel <tcit@tcit.fr> | 2015-07-17 23:13:56 +0200 |
commit | c129374147de3da613bf10124778ee59070d2a66 (patch) | |
tree | 5f080b6739e4c4e521d0fbda1a50b4025d7912c6 /inc | |
parent | 4a746679c899e44c214605561db2aeb5001f07cd (diff) | |
download | wallabag-c129374147de3da613bf10124778ee59070d2a66.tar.gz wallabag-c129374147de3da613bf10124778ee59070d2a66.tar.zst wallabag-c129374147de3da613bf10124778ee59070d2a66.zip |
fixed bug for #1242
Diffstat (limited to 'inc')
-rwxr-xr-x | inc/poche/Database.class.php | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/inc/poche/Database.class.php b/inc/poche/Database.class.php index 28d4a232..3b1f0af2 100755 --- a/inc/poche/Database.class.php +++ b/inc/poche/Database.class.php | |||
@@ -266,10 +266,10 @@ class Database { | |||
266 | { | 266 | { |
267 | $entries = $this->retrieveAll($userID); | 267 | $entries = $this->retrieveAll($userID); |
268 | if ($entries) { | 268 | if ($entries) { |
269 | foreach($entries as $entryid) { | 269 | foreach($entries as $entry) { |
270 | $tags = $this->retrieveTagsByEntry($entryid); | 270 | $tags = $this->retrieveTagsByEntry($entry['id']); |
271 | foreach($tags as $tag) { | 271 | foreach($tags as $tag) { |
272 | $this->removeTagForEntry($entryid,$tags); | 272 | $this->removeTagForEntry($entry['id'], $tags); |
273 | } | 273 | } |
274 | $this->deleteById($entryid,$userID); | 274 | $this->deleteById($entryid,$userID); |
275 | } | 275 | } |