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
|
||||
$key = '';
|
||||
}
|
||||
DBA::update('contact', ['gender' => $key], ['id' => $gender['id']]);
|
||||
logger::log('Updated contact ' . $gender['id'] . ' to gender ' . $key . ' (was: ' . $gender['gender'] . ')');
|
||||
|
||||
if ($key == '') {
|
||||
$fail++;
|
||||
} else {
|
||||
DBA::update('contact', ['gender' => $key], ['id' => $gender['id']]);
|
||||
logger::log('Updated contact ' . $gender['id'] . ' to gender ' . $key . ' (was: ' . $gender['gender'] . ')');
|
||||
$success++;
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue