summaryrefslogtreecommitdiffstats
path: root/system/helpers/array_helper.php
diff options
context:
space:
mode:
Diffstat (limited to 'system/helpers/array_helper.php')
-rw-r--r--system/helpers/array_helper.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/system/helpers/array_helper.php b/system/helpers/array_helper.php
index 5d0243951..0dfc3e1ae 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 empty($array[$item]) ? $default : $array[$item];
+ return ! isset($array[$item]) ? $default : $array[$item];
}
}