diff options
author | Otto Vainio <otto@valjakko.net> | 2010-05-28 14:19:32 +0300 |
---|---|---|
committer | Andreas Gohr <andi@splitbrain.org> | 2010-06-07 19:31:58 +0200 |
commit | 49cbd23e619ed9827e84e333e99889027198adef (patch) | |
tree | 088d5b84bc48fceaa24701a2a0f2d1ae025b7651 /inc/common.php | |
parent | 1468362acf130b9044c5d23a39968f4fae4e4a5a (diff) | |
download | rpg-49cbd23e619ed9827e84e333e99889027198adef.tar.gz rpg-49cbd23e619ed9827e84e333e99889027198adef.tar.bz2 |
php_to_byte returns invalid value if unit not set
Diffstat (limited to 'inc/common.php')
-rw-r--r-- | inc/common.php | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/inc/common.php b/inc/common.php index 144f8e48c..ec27d8a85 100644 --- a/inc/common.php +++ b/inc/common.php @@ -1324,6 +1324,9 @@ function php_to_byte($v){ case 'K': $ret *= 1024; break; + default; + $ret *= 10; + break; } return $ret; } |