Skip to content

Commit

Permalink
fix cleanseValuesAgainstSchema() to allow null values to be saved to …
Browse files Browse the repository at this point in the history
…db per #20
  • Loading branch information
Ths2-9Y-LqJt6 committed Nov 15, 2019
1 parent 0e7ee0f commit 0916acb
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tableManager.php
Original file line number Diff line number Diff line change
Expand Up @@ -552,7 +552,7 @@ private function cleanseValuesAgainstSchema($values){
$cleanArray = array();
foreach ($this->schema as $column){
$key = $column['COLUMN_NAME'];
if (isset($values[$key])) {
if (array_key_exists($key, $values)) {
$cleanArray[$key] = $values[$key];
}
}
Expand Down

0 comments on commit 0916acb

Please sign in to comment.