Skip to content

Commit 2c1ebbb

Browse files
authored
Update form_helper.php
1 parent 096aa10 commit 2c1ebbb

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

system/Helpers/form_helper.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -67,7 +67,7 @@ function form_open(string $action = '', $attributes = [], array $hidden = []): s
6767

6868
if(is_array($attributes) && array_key_exists('csrf_id', $attributes))
6969
{
70-
$csrf_id = $attributes['csrf_id'];
70+
$csrfId = $attributes['csrf_id'];
7171
unset($attributes['csrf_id']);
7272
}
7373

@@ -90,7 +90,7 @@ function form_open(string $action = '', $attributes = [], array $hidden = []): s
9090

9191
if ((in_array('csrf', $before) || array_key_exists('csrf', $before)) && strpos($action, base_url()) !== false && ! stripos($form, 'method="get"'))
9292
{
93-
$form .= csrf_field($csrf_id ?? null);
93+
$form .= csrf_field($csrfId ?? null);
9494
}
9595

9696
if (is_array($hidden))

0 commit comments

Comments
 (0)