[Pkg-owncloud-commits] [owncloud] 25/123: Pure numbers are returned as bytes right away
David Prévot
taffit at moszumanska.debian.org
Tue May 19 23:55:09 UTC 2015
This is an automated email from the git hooks/post-receive script.
taffit pushed a commit to branch stable8
in repository owncloud.
commit 4659927d7a1f2fdb72fc8ea3d34e5f9cd5e7f497
Author: Thomas Müller <thomas.mueller at tmit.eu>
Date: Fri May 8 10:54:54 2015 +0200
Pure numbers are returned as bytes right away
---
lib/private/helper.php | 3 +++
1 file changed, 3 insertions(+)
diff --git a/lib/private/helper.php b/lib/private/helper.php
index ec79881..981447c 100644
--- a/lib/private/helper.php
+++ b/lib/private/helper.php
@@ -394,6 +394,9 @@ class OC_Helper {
*/
public static function computerFileSize($str) {
$str = strtolower($str);
+ if (is_numeric($str)) {
+ return $str;
+ }
$bytes_array = array(
'b' => 1,
--
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-owncloud/owncloud.git
More information about the Pkg-owncloud-commits
mailing list