summaryrefslogtreecommitdiffstats
path: root/system/helpers
diff options
context:
space:
mode:
authorKyle Farris <kylefarris@gmail.com>2011-03-11 23:46:53 +0100
committerKyle Farris <kylefarris@gmail.com>2011-03-11 23:46:53 +0100
commitaf376a2df84123549293af846f827ff4da30bf5e (patch)
tree073d4eea4d678a727370846d9f460a78960db722 /system/helpers
parent7c6a5891c25bfdd392ed6317fd8f87b58386f030 (diff)
Forgot to trim the string first.
Diffstat (limited to 'system/helpers')
-rw-r--r--system/helpers/inflector_helper.php3
1 files changed, 2 insertions, 1 deletions
diff --git a/system/helpers/inflector_helper.php b/system/helpers/inflector_helper.php
index 3042202cb..e1cd66be0 100644
--- a/system/helpers/inflector_helper.php
+++ b/system/helpers/inflector_helper.php
@@ -81,7 +81,8 @@ if ( ! function_exists('singular'))
if ( ! function_exists('plural'))
{
function plural($str, $force = FALSE)
- {
+ {
+ $str = trim($str);
$end = substr($str, -1);
if (preg_match('/y/i',$end))