Closed myleshk closed 5 years ago
I've added this code at line 208:
//Remove unused keys
foreach($this->additionalFields as $key => $context) {
if(! isset($contentArray[$key]))
unset($this->additionalFields[$key]);
}
Fixed #23
Error message:
Situation:
When some
additionalFields
are provided with empty values. No logs are recorded to database when this warning shows.Code problem observed:
While
$contentArray
contains the full list of key-values,$this->statement
is only prepared with keys that has non-empty values. Thus it is true thatnumber of bound variables does not match number of tokens
.