diff --git a/lib/Hooks.php b/lib/Hooks.php index be93ee4..4f4a4a1 100644 --- a/lib/Hooks.php +++ b/lib/Hooks.php @@ -46,21 +46,21 @@ class Hooks { protected static function deleteFile(IDBConnection $connection, $fileId) { $queryBuilder = $connection->getQueryBuilder(); - $queryBuilder->delete('reader_bookmarks')->where('file_id = :file_id')->setParameter(':file_id', $fileId); + $queryBuilder->delete('reader_bookmarks')->where('file_id = :file_id')->setParameter('file_id', $fileId); $queryBuilder->execute(); $queryBuilder = $connection->getQueryBuilder(); - $queryBuilder->delete('reader_prefs')->where('file_id = :file_id')->setParameter(':file_id', $fileId); + $queryBuilder->delete('reader_prefs')->where('file_id = :file_id')->setParameter('file_id', $fileId); $queryBuilder->execute(); } protected static function deleteUser(IDBConnection $connection, $userId) { $queryBuilder = $connection->getQueryBuilder(); - $queryBuilder->delete('reader_bookmarks')->where('user_id = :user_id')->setParameter(':user_id', $userId); + $queryBuilder->delete('reader_bookmarks')->where('user_id = :user_id')->setParameter('user_id', $userId); $queryBuilder->execute(); $queryBuilder = $connection->getQueryBuilder(); - $queryBuilder->delete('reader_prefs')->where('user_id = :user_id')->setParameter(':user_id', $userId); + $queryBuilder->delete('reader_prefs')->where('user_id = :user_id')->setParameter('user_id', $userId); $queryBuilder->execute(); }