Change string indexing from {0} to [0] (deprecated in PHP 7.4)
This commit is contained in:
committed by
Frédéric Guillot
parent
6c08225f76
commit
35602c0880
@@ -94,7 +94,7 @@ class Csv
|
||||
{
|
||||
if (! empty($value)) {
|
||||
$value = trim(strtolower($value));
|
||||
return $value === '1' || $value{0} === 't' || $value{0} === 'y' ? 1 : 0;
|
||||
return $value === '1' || $value[0] === 't' || $value[0] === 'y' ? 1 : 0;
|
||||
}
|
||||
|
||||
return 0;
|
||||
|
||||
Reference in New Issue
Block a user