Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
PROBLEM Upgrading 3.3-14 > 3.3.15 BIG Problem
#4
(2018-12-06, 14:57:59)Oleg06 Wrote: https://prnt.sc/lrby66
https://prnt.sc/lrbyfl
with php 5.6 there is no such
Code:
Notice: A non well formed numeric value encountered in /home/u915147/mydomen.ru/html/admin/inc/basic.php on line 1198

it helped
PHP Code:
function toBytes($str){
 
   $val trim($str);
 
   $last strtolower($str[strlen($str)-1]);
 
   if (!is_numeric($last)) {
 
       $val substr($val,0,strlen($val)-1);
 
       switch($last) {
 
           case 'g'$val *= 1024;
 
           case 'm'$val *= 1024;
 
           case 'k'$val *= 1024;
 
       }
 
   }
 
   return $val;

Reply


Messages In This Thread
Upgrading 3.3-14 > 3.3.15 BIG Problem - by SoHo22 - 2018-10-10, 22:44:29
RE: Upgrading 3.3-14 > 3.3.15 BIG Problem - by Oleg06 - 2018-12-06, 20:56:14



Users browsing this thread: 1 Guest(s)