Merge pull request #53536 from nextcloud/fix/fix-php-error-on-upgrade

[stable31] fix: Fix Undefined array key "flags" on upgrade
This commit is contained in:
Ferdinand Thiessen 2025-06-18 09:45:29 +02:00 committed by GitHub
commit ba041fbfd7
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

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);