diff --git a/library/ajax/edit_user_profile.php b/library/ajax/edit_user_profile.php index 62f0f8702..a2d5b74b8 100644 --- a/library/ajax/edit_user_profile.php +++ b/library/ajax/edit_user_profile.php @@ -128,7 +128,7 @@ switch ($field) { foreach (array('KB' => 1, 'MB' => 2, 'GB' => 3, 'TB' => 4) as $s => $m) { if (strpos($this->request['value'], $s) !== false) { - $value *= pow(1024, $m); + $value *= (1024 ** $m); break; } } diff --git a/library/attach_mod/includes/functions_attach.php b/library/attach_mod/includes/functions_attach.php index 40f407bd9..04ac91a59 100644 --- a/library/attach_mod/includes/functions_attach.php +++ b/library/attach_mod/includes/functions_attach.php @@ -68,7 +68,7 @@ function base64_unpack($string) for ($i = 1; $i <= $length; $i++) { $pos = $length - $i; $operand = strpos($chars, $string[$pos]); - $exponent = pow($base, $i - 1); + $exponent = $base ** ($i - 1); $decValue = $operand * $exponent; $number += $decValue; }