fix: Fix Undefined array key "flags" on upgrade

Signed-off-by: Côme Chilliet <come.chilliet@nextcloud.com>
This commit is contained in:
Côme Chilliet 2025-06-17 10:13:16 +02:00
parent b6f8bbb6bf
commit d769a5c001
No known key found for this signature in database
GPG key ID: A3E2F658B28C760A

View file

@ -1720,7 +1720,7 @@ class UserConfig implements IUserConfig {
} else {
$this->fastCache[$userId][$row['appid']][$row['configkey']] = $row['configvalue'] ?? '';
}
$this->valueDetails[$userId][$row['appid']][$row['configkey']] = ['type' => ValueType::from((int)($row['type'] ?? 0)), 'flags' => (int)$row['flags']];
$this->valueDetails[$userId][$row['appid']][$row['configkey']] = ['type' => ValueType::from((int)($row['type'] ?? 0)), 'flags' => (int)($row['flags'] ?? 0)];
}
$result->closeCursor();
$this->setAsLoaded($userId, $lazy);