Skip to content

Commit

Permalink
Merge pull request #98 from holmie/master
Browse files Browse the repository at this point in the history
Fix deprecated use of curly brackets for string offsets.
  • Loading branch information
BarbarossaTM authored Oct 14, 2023
2 parents 0b2ff64 + 3ff153b commit ea60439
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion check.php
Original file line number Diff line number Diff line change
Expand Up @@ -258,7 +258,7 @@ function return_bytes($val) {
$val = trim($val);
if($val != '')
{
$last = strtolower($val{strlen($val)-1});
$last = strtolower($val[strlen($val)-1]);
switch($last) {
// The 'G' modifier is available since PHP 5.1.0
case 'g':
Expand Down

0 comments on commit ea60439

Please sign in to comment.