mirror of
https://git.sekbaer.de/Friendica/friendica.git
synced 2025-06-11 09:34:26 +02:00
Add Two-factor recovery code model
- [DBA] Add NULL value handling in condition array
This commit is contained in:
parent
c6ef7f5965
commit
a7feb4bf9f
2 changed files with 72 additions and 0 deletions
|
@ -1484,6 +1484,8 @@ class DBA
|
|||
$new_values = array_merge($new_values, array_values($value));
|
||||
$placeholders = substr(str_repeat("?, ", count($value)), 0, -2);
|
||||
$condition_string .= "`" . $field . "` IN (" . $placeholders . ")";
|
||||
} elseif (is_null($value)) {
|
||||
$condition_string .= "`" . $field . "` IS NULL";
|
||||
} else {
|
||||
$new_values[$field] = $value;
|
||||
$condition_string .= "`" . $field . "` = ?";
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue