Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commitf3b1113

Browse files
committed
fix callback check on empty values
This bug prevented giving an empty array as values.
1 parent0d7e584 commitf3b1113

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

‎src/Html/Builder.php‎

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -161,6 +161,10 @@ public function parameterize($attributes = [])
161161
*/
162162
protectedfunctionisCallbackFunction($value,$key)
163163
{
164+
if (empty($value)) {
165+
returnfalse;
166+
}
167+
164168
return Str::startsWith(trim($value),$this->config->get('datatables-html.callback', ['$','$.','function'])) || Str::contains($key,'editor');
165169
}
166170

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp