commit | a18c6097a38f7b3eac789b5c217a97d7ac0b7085 | [log] [tgz] |
---|---|---|
author | Andrey Andreev <narf@devilix.net> | Thu Dec 03 17:53:14 2015 +0200 |
committer | Andrey Andreev <narf@devilix.net> | Thu Dec 03 17:53:14 2015 +0200 |
tree | 20f9a0b0d5ec434118fcf95971353c35df5b64b5 | |
parent | 5734cb3cc59ca938112e981b9ebd27ba5bb69173 [diff] [blame] |
Fix #4283
diff --git a/system/helpers/string_helper.php b/system/helpers/string_helper.php index 6378351..3138a04 100644 --- a/system/helpers/string_helper.php +++ b/system/helpers/string_helper.php
@@ -270,7 +270,7 @@ * @param string (as many parameters as needed) * @return string */ - function alternator($args) + function alternator() { static $i; @@ -279,6 +279,7 @@ $i = 0; return ''; } + $args = func_get_args(); return $args[($i++ % count($args))]; }