Skip to content

Commit

Permalink
Fix for NULL values in the database. closes #97
Browse files Browse the repository at this point in the history
  • Loading branch information
David Durieux authored and cedric-anne committed Oct 18, 2018
1 parent 5a6eb21 commit a4afc1c
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion inc/commoninjectionlib.class.php
Original file line number Diff line number Diff line change
Expand Up @@ -860,7 +860,11 @@ private function setValueForItemtype($itemtype, $field, $value, $fromdb = false)
}

} else { // First value
$this->values[$itemtype][$field] = $value;
if (is_null($value)) {
$this->values[$itemtype][$field] = "NULL";
} else {
$this->values[$itemtype][$field] = $value;
}
}
}

Expand Down

0 comments on commit a4afc1c

Please sign in to comment.