refs #8027 combine if statements

This commit is contained in:
Seth Tanner 2016-02-11 01:49:34 +00:00
parent 3ca3ffeeee
commit c05835d85d

View file

@ -934,11 +934,9 @@ class Postgres extends DboSource {
*/
public function value($data, $column = null, $null = true) {
$value = parent::value($data, $column, $null);
if ($column === 'uuid' && is_scalar($data)) {
if ($data === '') {
if ($column === 'uuid' && is_scalar($data) && $data === '') {
return 'NULL';
}
}
return $value;
}