summaryrefslogtreecommitdiffstats
path: root/system/helpers/number_helper.php
diff options
context:
space:
mode:
authorTimothy Warren <tim@timshomepage.net>2012-04-27 18:03:32 +0200
committerTimothy Warren <tim@timshomepage.net>2012-04-27 18:03:32 +0200
commitb75faa1a03a32330e412f0bd0332fb9fa389e914 (patch)
tree2057428eb2d15e9bb1fa2904016dfd87826f4001 /system/helpers/number_helper.php
parentfe11f14a62a5a761c790621c7c3f5a79d9d0c741 (diff)
Fix rest of the helpers
Diffstat (limited to 'system/helpers/number_helper.php')
-rw-r--r--system/helpers/number_helper.php13
1 files changed, 7 insertions, 6 deletions
diff --git a/system/helpers/number_helper.php b/system/helpers/number_helper.php
index 40da6e7bf..2a906ba1b 100644
--- a/system/helpers/number_helper.php
+++ b/system/helpers/number_helper.php
@@ -37,14 +37,15 @@
// ------------------------------------------------------------------------
-/**
- * Formats a numbers as bytes, based on size, and adds the appropriate suffix
- *
- * @param mixed // will be cast as int
- * @return string
- */
if ( ! function_exists('byte_format'))
{
+ /**
+ * Formats a numbers as bytes, based on size, and adds the appropriate suffix
+ *
+ * @param mixed // will be cast as int
+ * @param int
+ * @return string
+ */
function byte_format($num, $precision = 1)
{
$CI =& get_instance();