summaryrefslogtreecommitdiffstats
path: root/system/core
diff options
context:
space:
mode:
authorAndrey Andreev <narf@devilix.net>2017-01-20 14:46:17 +0100
committerAndrey Andreev <narf@devilix.net>2017-01-20 14:46:17 +0100
commit4316a157c27a3721dbfd8a817bf8cbffb1fe371f (patch)
treec8445f076d1552aedcdd003e2645c01f85a4fa24 /system/core
parent93141a13e77a88be044e4c7f51ba3c2a35bf0ccc (diff)
Don't use each()
Will be deprecated in PHP 7.2
Diffstat (limited to 'system/core')
-rw-r--r--system/core/Security.php4
1 files changed, 2 insertions, 2 deletions
diff --git a/system/core/Security.php b/system/core/Security.php
index bacbb78d0..082ffa96b 100644
--- a/system/core/Security.php
+++ b/system/core/Security.php
@@ -354,9 +354,9 @@ class CI_Security {
// Is the string an array?
if (is_array($str))
{
- while (list($key) = each($str))
+ foreach ($str as $key => &$value)
{
- $str[$key] = $this->xss_clean($str[$key]);
+ $str[$key] = $this->xss_clean($value);
}
return $str;