summaryrefslogtreecommitdiffstats
path: root/db
diff options
context:
space:
mode:
Diffstat (limited to 'db')
-rw-r--r--db/foldermapper.php6
1 files changed, 4 insertions, 2 deletions
diff --git a/db/foldermapper.php b/db/foldermapper.php
index bce599b45..f2a2ff68d 100644
--- a/db/foldermapper.php
+++ b/db/foldermapper.php
@@ -58,12 +58,14 @@ class FolderMapper extends NewsMapper {
// we needz CASCADE + FKs please
$sql = 'DELETE FROM `*PREFIX*news_feeds` WHERE `folder_id` = ?';
$params = [$entity->getId()];
- $this->execute($sql, $params);
+ $stmt = $this->execute($sql, $params);
+ $stmt->closeCursor();
$sql = 'DELETE FROM `*PREFIX*news_items` WHERE `feed_id` NOT IN '.
'(SELECT `feeds`.`id` FROM `*PREFIX*news_feeds` `feeds`)';
- $this->execute($sql);
+ $stmt = $this->execute($sql);
+ $stmt->closeCursor();
}