FIX: evitar correr funcion con valor vacio en Mapper
This commit is contained in:
@ -68,7 +68,7 @@ class Mapper implements Define\Repository\Mapper
|
||||
}
|
||||
$value = $data[$column];
|
||||
if ($this->hasFunction()) {
|
||||
if ($value !== null) {
|
||||
if ($value !== null and $value !== '') {
|
||||
try {
|
||||
$value = ($this->function)($data);
|
||||
} catch (EmptyResult $exception) {
|
||||
|
Reference in New Issue
Block a user