Skip to content
Snippets Groups Projects

Devel

Merged Dr. Marcel Wunderlich requested to merge devel into main
2 files
+ 13
13
Compare changes
  • Side-by-side
  • Inline
Files
2
@@ -10,15 +10,15 @@ use OCP\IDBConnection;
class FilecacheMapper extends ExtMapper {
const FILECACHE_TABLE = 'filecache';
private int $accountsState = 0;
private string $accountsState = '';
public function __construct(IDBConnection $db, int $chunkSize, int $accountsState = 0) {
public function __construct(IDBConnection $db, int $chunkSize, string $accountsState = '') {
parent::__construct($db, self::FILECACHE_TABLE, $chunkSize);
$this->accountsState = $accountsState;
}
public function setAccountsState(int $state) {
public function setAccountsState(string $state) {
$this->accountsState = $state;
}
@@ -138,8 +138,8 @@ class FilecacheMapper extends ExtMapper {
if ($this->accountsState != 0) {
$query->andWhere(
$query->expr()->andX($query->expr()->eq('configkey',
$query->createParameter('enabled')),
$query->expr()->in('configvalue', $query->createParameter('true'))
$query->createPositionalParameter('enabled')),
$query->expr()->in('configvalue', $query->createPositionalParameter('true'))
));
}
}
Loading