If no generic gender is found, proceed without update
This commit is contained in:
parent
5f1e2b2e49
commit
c7d4838400
|
@ -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 New Issue
Block a user