Browse Source

An array with fieldnames as keys is important for the "insert" in the "update" function

pull/4532/head
Michael 3 years ago
parent
commit
194da423e0
1 changed files with 1 additions and 1 deletions
  1. +1
    -1
      include/dba.php

+ 1
- 1
include/dba.php View File

@ -1245,7 +1245,7 @@ class dba {
$placeholders = substr(str_repeat("?, ", count($value)), 0, -2);
$condition_string .= "`" . $field . "` IN (" . $placeholders . ")";
} else {
$new_values[] = $value;
$new_values[$field] = $value;
$condition_string .= "`" . $field . "` = ?";
}
}


Loading…
Cancel
Save