Skip null values in fixprefs.sh
This commit is contained in:
parent
f3a19e0a43
commit
32899fc406
1 changed files with 1 additions and 0 deletions
|
@ -61,6 +61,7 @@ while ($sql_result && ($sql_arr = $db->fetch_assoc($sql_result))) {
|
||||||
echo 'Updating prefs for user ' . $sql_arr['user_id'] . '...';
|
echo 'Updating prefs for user ' . $sql_arr['user_id'] . '...';
|
||||||
|
|
||||||
foreach ($prefs['kolab_2fa_blob'] as $key => $value) {
|
foreach ($prefs['kolab_2fa_blob'] as $key => $value) {
|
||||||
|
if ($value === null) { continue; }
|
||||||
[$driver] = explode(':', $key);
|
[$driver] = explode(':', $key);
|
||||||
if (!empty($config[$driver])) {
|
if (!empty($config[$driver])) {
|
||||||
$prefs['kolab_2fa_blob'][$key] += $config[$driver];
|
$prefs['kolab_2fa_blob'][$key] += $config[$driver];
|
||||||
|
|
Loading…
Add table
Reference in a new issue