diff --git a/api/src/Vfs/Sqlfs/StreamWrapper.php b/api/src/Vfs/Sqlfs/StreamWrapper.php index 2c2ea5c747..418530573e 100644 --- a/api/src/Vfs/Sqlfs/StreamWrapper.php +++ b/api/src/Vfs/Sqlfs/StreamWrapper.php @@ -1673,6 +1673,7 @@ GROUP BY A.fs_id'; { $query = '/* '.__METHOD__.': '.__LINE__.' */ '.$query; } + self::connection(); $stmt = self::$pdo->prepare($query); $stmt->execute(array($fs_id));