summaryrefslogtreecommitdiffstats
path: root/system/helpers
diff options
context:
space:
mode:
authorPhil Sturgeon <email@philsturgeon.co.uk>2012-07-04 14:43:36 +0200
committerPhil Sturgeon <email@philsturgeon.co.uk>2012-07-04 14:43:36 +0200
commit6801d044d7f7b905e1fdaf21231f8a3fad5b4057 (patch)
treee10a51500fbf32123b58cffa2984ee50e0bb3327 /system/helpers
parentbf0e38be236812656890223eea3b9f0dc68582c0 (diff)
Ahem.
Diffstat (limited to 'system/helpers')
-rw-r--r--system/helpers/array_helper.php4
1 files changed, 2 insertions, 2 deletions
diff --git a/system/helpers/array_helper.php b/system/helpers/array_helper.php
index 5a7f633e8..ed2fe3c4a 100644
--- a/system/helpers/array_helper.php
+++ b/system/helpers/array_helper.php
@@ -52,7 +52,7 @@ if ( ! function_exists('element'))
*/
function element($item, $array, $default = NULL)
{
- return array_key_exists($array[$item]) ? $array[$item] : $default;
+ return array_key_exists($item, $array) ? $array[$item] : $default;
}
}
@@ -95,7 +95,7 @@ if ( ! function_exists('elements'))
foreach ($items as $item)
{
- $return[$item] = array_key_exists($array[$item]) ? $array[$item] : $default;
+ $return[$item] = array_key_exists($item, $array) ? $array[$item] : $default;
}
return $return;