mirror of
https://github.com/kamilwylegala/cakephp2-php8.git
synced 2024-11-15 03:18:26 +00:00
refs #8027 combine if statements
This commit is contained in:
parent
3ca3ffeeee
commit
c05835d85d
1 changed files with 2 additions and 4 deletions
|
@ -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;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue