summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-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];
}
}