summaryrefslogtreecommitdiffstats
path: root/system/core/Lang.php
diff options
context:
space:
mode:
authorAndrey Andreev <narf@devilix.net>2014-02-21 18:05:35 +0100
committerAndrey Andreev <narf@devilix.net>2014-02-21 18:05:35 +0100
commitd104f8b43f70df55915a8b8d91a19952360080ba (patch)
tree1ca798f42c237187440bf4478eb46662cfb04da6 /system/core/Lang.php
parente52e42677aa1947fcf4b81b7d58637696d7305c6 (diff)
More CI_Lang tests
Diffstat (limited to 'system/core/Lang.php')
-rw-r--r--system/core/Lang.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/system/core/Lang.php b/system/core/Lang.php
index 94342133a..ae0a4d642 100644
--- a/system/core/Lang.php
+++ b/system/core/Lang.php
@@ -168,7 +168,7 @@ class CI_Lang {
*/
public function line($line, $log_errors = TRUE)
{
- $value = ($line === '' OR ! isset($this->language[$line])) ? FALSE : $this->language[$line];
+ $value = isset($this->language[$line]) ? $this->language[$line] : FALSE;
// Because killer robots like unicorns!
if ($value === FALSE && $log_errors === TRUE)