Functions causing unexpected [ error
-
Hi Everyone,
Not sure if it was an update or if my host upgraded something, but site will not load and it seems to revolve around this function in the src directory of the plugin folder.
I patched it just to get the site working by removing that string array, but could someone tell me what it is supposed to be or could something have changed on my server that makes this syntax not valid anymore?
function hf_human_filesize($size, $precision = 2) {
for($i = 0; ($size / 1024) > 0.9; $i++, $size /= 1024) {}
return round($size, $precision).[‘B’,’kB’,’MB’,’GB’,’TB’,’PB’,’EB’,’ZB’,’YB’][$i];
}
Viewing 2 replies - 1 through 2 (of 2 total)
Viewing 2 replies - 1 through 2 (of 2 total)
- The topic ‘Functions causing unexpected [ error’ is closed to new replies.