diff --git a/tine20/Tinebase/Import/Db/Abstract.php b/tine20/Tinebase/Import/Db/Abstract.php index fd97ed8c39..123f46cea2 100644 --- a/tine20/Tinebase/Import/Db/Abstract.php +++ b/tine20/Tinebase/Import/Db/Abstract.php @@ -45,6 +45,7 @@ public function import(): array $select = $this->_getSelect(++$pageNumber, $pageCount); $stmt = $select->query(); $rows = $stmt->fetchAll(Zend_Db::FETCH_ASSOC); + $stmt->closeCursor(); if (Tinebase_Core::isLogLevel(Zend_Log::INFO)) Tinebase_Core::getLogger()->info(__METHOD__ . '::' . __LINE__ . ' fetched ' . count($rows) . ' rows / pagenumber: ' . $pageNumber);