Skip to content

Commit 61ea77d

Browse files
authored
Merge pull request yajra#116 from om3rcitak/4.0
hotfix | substring to substr
2 parents 3367262 + 266febd commit 61ea77d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Html/Button.php

100644100755
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -185,7 +185,7 @@ public function actionSubmit()
185185
*/
186186
public function action($value)
187187
{
188-
if (substring($value, 0, 8) == 'function') {
188+
if (substr($value, 0, 8) == 'function') {
189189
$this->attributes['action'] = $value;
190190
} else {
191191
$this->attributes['action'] = "function(e, dt, node, config) { $value }";

0 commit comments

Comments
 (0)