Skip to content

Commit 60bfc44

Browse files
committed
use strict in_array search
1 parent f6ae646 commit 60bfc44

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/yajra/Datatables/Processors/DataProcessor.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -188,7 +188,7 @@ protected function escapeColumns(array $output)
188188
{
189189
return array_map(function ($row) {
190190
foreach ($row as $key => $value) {
191-
if (in_array($key, $this->escapeColumns) || $this->escapeColumns == '*') {
191+
if ($this->escapeColumns == '*' || in_array($key, $this->escapeColumns, true)) {
192192
$row[$key] = e($value);
193193
}
194194
}

0 commit comments

Comments
 (0)