mirror of
https://github.com/alchemy-fr/Phraseanet.git
synced 2025-10-17 23:13:15 +00:00
Fix #1705 : MySQL connection might be lost after long operations
This commit is contained in:
@@ -81,6 +81,7 @@ class collection implements cache_cacheableInterface
|
||||
$stmt = $connbas->prepare($sql);
|
||||
$stmt->execute(array(':coll_id' => $this->coll_id));
|
||||
$row = $stmt->fetch(PDO::FETCH_ASSOC);
|
||||
$stmt->closeCursor();
|
||||
|
||||
if ( ! $row)
|
||||
throw new Exception('Unknown collection ' . $this->coll_id . ' on ' . $this->databox->get_dbname());
|
||||
|
Reference in New Issue
Block a user