Skip to content

Commit

Permalink
Fix deprecated use of curly brackets for string offsets.
Browse files Browse the repository at this point in the history
  • Loading branch information
holmie committed Oct 14, 2023
1 parent 0b2ff64 commit 3ff153b
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 3ff153b

Please sign in to comment.