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,10 +934,8 @@ class Postgres extends DboSource {
*/ */
public function value($data, $column = null, $null = true) { public function value($data, $column = null, $null = true) {
$value = parent::value($data, $column, $null); $value = parent::value($data, $column, $null);
if ($column === 'uuid' && is_scalar($data)) { if ($column === 'uuid' && is_scalar($data) && $data === '') {
if ($data === '') { return 'NULL';
return 'NULL';
}
} }
return $value; return $value;
} }