summaryrefslogtreecommitdiffstats
path: root/system/helpers
diff options
context:
space:
mode:
authorAndrey Andreev <narf@devilix.net>2015-12-03 16:53:14 +0100
committerAndrey Andreev <narf@devilix.net>2015-12-03 16:53:14 +0100
commita18c6097a38f7b3eac789b5c217a97d7ac0b7085 (patch)
tree20f9a0b0d5ec434118fcf95971353c35df5b64b5 /system/helpers
parent5734cb3cc59ca938112e981b9ebd27ba5bb69173 (diff)
Fix #4283
Diffstat (limited to 'system/helpers')
-rw-r--r--system/helpers/string_helper.php3
1 files changed, 2 insertions, 1 deletions
diff --git a/system/helpers/string_helper.php b/system/helpers/string_helper.php
index 637835160..3138a04b3 100644
--- a/system/helpers/string_helper.php
+++ b/system/helpers/string_helper.php
@@ -270,7 +270,7 @@ if ( ! function_exists('alternator'))
* @param string (as many parameters as needed)
* @return string
*/
- function alternator($args)
+ function alternator()
{
static $i;
@@ -279,6 +279,7 @@ if ( ! function_exists('alternator'))
$i = 0;
return '';
}
+
$args = func_get_args();
return $args[($i++ % count($args))];
}