mirror of
https://github.com/friendica/friendica
synced 2024-11-13 00:22:59 +00:00
If no generic gender is found, proceed without update
This commit is contained in:
parent
5f1e2b2e49
commit
c7d4838400
1 changed files with 2 additions and 2 deletions
|
@ -289,12 +289,12 @@ function update_1293()
|
||||||
// defaulting to empty string
|
// defaulting to empty string
|
||||||
$key = '';
|
$key = '';
|
||||||
}
|
}
|
||||||
DBA::update('contact', ['gender' => $key], ['id' => $gender['id']]);
|
|
||||||
logger::log('Updated contact ' . $gender['id'] . ' to gender ' . $key . ' (was: ' . $gender['gender'] . ')');
|
|
||||||
|
|
||||||
if ($key == '') {
|
if ($key == '') {
|
||||||
$fail++;
|
$fail++;
|
||||||
} else {
|
} else {
|
||||||
|
DBA::update('contact', ['gender' => $key], ['id' => $gender['id']]);
|
||||||
|
logger::log('Updated contact ' . $gender['id'] . ' to gender ' . $key . ' (was: ' . $gender['gender'] . ')');
|
||||||
$success++;
|
$success++;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue