Skip to content

Commit

Permalink
fix: A non well formed numeric value encountered (PHP 7.1)
Browse files Browse the repository at this point in the history
  • Loading branch information
remicollet committed Jun 11, 2016
1 parent 4d08a12 commit 25f02ad
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion inc/toolbox.class.php
Original file line number Diff line number Diff line change
Expand Up @@ -1954,7 +1954,8 @@ static function manageRedirect($where) {
static function return_bytes_from_ini_vars($val) {

$val = trim($val);
$last = self::strtolower($val{strlen($val)-1});
$last = self::strtolower($val[strlen($val)-1]);
$val = (int)$val;

switch($last) {
// Le modifieur 'G' est disponible depuis PHP 5.1.0
Expand Down

0 comments on commit 25f02ad

Please sign in to comment.