Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Avoid php notice when converting php memory limit #446

Merged
merged 1 commit into from Nov 28, 2018
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
9 changes: 5 additions & 4 deletions public_html/lists/admin/connect.php
Expand Up @@ -1506,16 +1506,17 @@ function phpcfgsize2bytes($val)
{
$val = trim($val);
$last = mb_strtolower($val{strlen($val) - 1});
$result = substr($val, 0, -1);
switch ($last) {
case 'g':
$val *= 1024;
$result *= 1024;
case 'm':
$val *= 1024;
$result *= 1024;
case 'k':
$val *= 1024;
$result *= 1024;
}

return $val;
return $result;
}

function Help($topic, $text = '?')
Expand Down