Upgrade to 3.6.1
This commit is contained in:
@@ -11,7 +11,7 @@ return [
|
||||
],
|
||||
'computed' => [
|
||||
'value' => function () {
|
||||
return trim($this->value);
|
||||
return trim($this->value ?? '');
|
||||
}
|
||||
]
|
||||
];
|
||||
|
@@ -27,7 +27,7 @@ return [
|
||||
* Sets the default text when a new page/file/user is created
|
||||
*/
|
||||
'default' => function (string $default = null) {
|
||||
return trim($default);
|
||||
return trim($default ?? '');
|
||||
},
|
||||
|
||||
/**
|
||||
@@ -81,7 +81,7 @@ return [
|
||||
},
|
||||
|
||||
'value' => function (string $value = null) {
|
||||
return trim($value);
|
||||
return trim($value ?? '');
|
||||
}
|
||||
],
|
||||
'api' => function () {
|
||||
|
@@ -29,7 +29,8 @@ return [
|
||||
],
|
||||
'computed' => [
|
||||
'value' => function () {
|
||||
return Sane::sanitize(trim($this->value), 'html');
|
||||
$value = trim($this->value ?? '');
|
||||
return Sane::sanitize($value, 'html');
|
||||
}
|
||||
],
|
||||
];
|
||||
|
Reference in New Issue
Block a user