mirror of
https://github.com/nextcloud/server.git
synced 2026-05-28 04:32:30 -04:00
fix(user_ldap): Ignore unserialize error in group membership migration
The memberships will be checked by the background job later and data will be added to the table anyway. Signed-off-by: Côme Chilliet <come.chilliet@nextcloud.com>
This commit is contained in:
parent
dc67825541
commit
875d0a27b0
1 changed files with 4 additions and 0 deletions
|
|
@ -99,6 +99,10 @@ class Version1190Date20230706134108 extends SimpleMigrationStep {
|
|||
$result = $query->executeQuery();
|
||||
while ($row = $result->fetch()) {
|
||||
$knownUsers = unserialize($row['owncloudusers']);
|
||||
if (!is_array($knownUsers)) {
|
||||
/* Unserialize failed or data was incorrect in database, ignore */
|
||||
continue;
|
||||
}
|
||||
$knownUsers = array_unique($knownUsers);
|
||||
foreach ($knownUsers as $knownUser) {
|
||||
try {
|
||||
|
|
|
|||
Loading…
Reference in a new issue